Function at 0x3687ab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4a4
mov eax, dword [esp + 0x4e4]
push ebx
mov ebx, dword [esp + 0x4d0]
mov dword [esp + 0x40], ecx
mov dword [eax], 0
push ebp
push esi
push edi
test ebx, ebx
je 0x3687b16
cmp ebx, 2
je 0x3687b16
cmp ebx, 1
je 0x3687b16
cmp ebx, 3
je 0x3687b16
cmp ebx, 4
je 0x3687b16
cmp ebx, 5
je 0x3687b16
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0xc000000d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4a4
ret 0x40
mov ebp, dword [esp + 0x4e0]
mov esi, ebp
and esi, 1
mov dword [esp + 0x14], esi
je 0x3687b30
test ebp, 0x40
jne 0x3687aef
mov edi, dword [esp + 0x4bc]
mov eax, ebp
and eax, 0x10
jne 0x3687b46
test ebp, 0x20
je 0x3687b4e
test edi, 0x100000
je 0x3687aef
test esi, esi
je 0x3687b60
test ebx, ebx
je 0x3687aef
cmp ebx, 4
je 0x3687aef
cmp ebx, 5
je 0x3687aef
test edi, 0x100000
je 0x3687b7c
test ebp, 0x20
jne 0x3687b7c
mov dword [esp + 0x50], 1
test eax, eax
je 0x3687b84
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x4c8]
lea eax, [esp + 0x38]
push eax
call fcn.03681fe0
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x74]
call fcn.03681d70
mov ecx, dword [esp + 0x4c4]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x4c]
push 0x100f7c80
lea eax, [esp + 0x20]
push eax
call dword [0x1011f448]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x6c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x98], 0
call fcn.03681ed0
test eax, eax
je 0x3688256
mov eax, dword [esp + 0x94]
cmp eax, 1
je 0x3688256
test eax, eax
jne 0x3687c7c
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x94]
lea eax, [esp + 0x30]
mov edi, dword [esi]
lea ecx, [esp + 0x74]
push eax
call fcn.03682040
push eax
mov ecx, esi
call dword [edi + 0x18]
mov ecx, eax
test ecx, ecx
jne 0x3687db7
test dword [esp + 0x1c], 0x10
je 0x3687d98
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x70]
call fcn.03681ed0
test eax, eax
je 0x3687c71
cmp dword [esp + 0x94], 0
je 0x3687c14
mov edi, dword [esp + 0x4bc]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x24], 0
test ebx, ebx
jne 0x3687de8
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x3c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x40], eax
je 0x3687cc8
test dword [esp + 0x1c], 0x10
je 0x3687cc8
test ebp, 0x40
jne 0x3687fca
test esi, esi
je 0x3687f96
mov edx, dword [esp + 0x4d4]
and edx, 0xffffff7f
test esi, esi
jne 0x3687cdf
and edx, 0xffffffef
or edx, 0x20
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x24]
push esi
push ebp
push dword [esp + 0x4e0]
mov eax, dword [ecx]
push edx
push edi
lea edx, [esp + 0x4c]
push edx
call dword [eax + 0x14]
mov ecx, eax
test ecx, ecx
jne 0x3687f2a
cmp dword [esp + 0x78], 0xffffffff
je 0x3687d85
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x70]
call fcn.036821d0
lea ecx, [esp + 0x6c]
mov eax, dword [eax + 4]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.03682040
push 8
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x5c]
push eax
call dword [0x1011f348]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x58]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x3687d85
mov edx, dword [esp + 0x14]
test edx, 0x20
jne 0x3687d85
mov ecx, dword [esp + 0x18]
or edx, 0x20
mov dword [esp + 0x14], edx
push edx
lea edx, [esp + 0x58]
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
xor eax, eax
mov edi, 2
cmp dword [esp + 0x40], eax
cmovne edi, eax
jmp 0x3688152
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0xc000003a
jmp 0x3688d29
mov eax, dword [esp + 0x4f0]
and ecx, 0xefffffff
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
cmp ecx, 0xc0000034
jne 0x3688d27
mov dword [eax], 0xc000003a
jmp 0x3688d29
cmp ebx, 2
jne 0x3687f0a
test esi, esi
je 0x3687e06
mov eax, dword [esp + 0x4c8]
cmp dword [eax + 0xc], 0xffffffff
jne 0x3688a68
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x3c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x3687e39
test ebp, 0x40
je 0x3687f96
test byte [esp + 0x1c], 0x10
je 0x3687f96
jmp 0x3687fca
mov edx, dword [esp + 0x4d4]
and edx, 0xffffff7f
test esi, esi
jne 0x3687e50
and edx, 0xffffffef
or edx, 0x20
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x24]
push esi
push ebp
push dword [esp + 0x4e0]
mov eax, dword [ecx]
push edx
push edi
lea edx, [esp + 0x4c]
push edx
call dword [eax + 0xc]
mov ecx, eax
test ecx, ecx
jne 0x3687f2a
cmp dword [esp + 0x78], 0xffffffff
lea edi, [eax + 2]
je 0x3688152
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x70]
call fcn.036821d0
lea ecx, [esp + 0x6c]
mov eax, dword [eax + 4]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.03682040
push 8
mov ecx, dword [eax]
mov dword [esp + 0x44], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
call dword [0x1011f348]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x34]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x3688152
mov edx, dword [esp + 0x14]
test edx, 0x20
jne 0x3688152
mov ecx, dword [esp + 0x18]
or edx, 0x20
mov dword [esp + 0x14], edx
push edx
lea edx, [esp + 0x34]
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
jmp 0x3688152
cmp ebx, 1
je 0x3687f5d
cmp ebx, 3
je 0x3687f5d
cmp ebx, 4
je 0x3687f5d
cmp ebx, 5
je 0x3687f5d
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x368814f
mov eax, dword [esp + 0x4f0]
and ecx, 0xefffffff
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], ecx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x3688d29
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x3688d29
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x3c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x3687fe9
mov eax, dword [esp + 0x1c]
shr eax, 4
and eax, 1
je 0x3687fb2
cmp ebx, 4
je 0x3687f8a
cmp ebx, 5
jne 0x3687fb2
test esi, esi
jne 0x3687fb6
test ebp, 0x40
jne 0x3687fb2
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0xc0000035
jmp 0x3687f46
test esi, esi
je 0x3687fbe
test eax, eax
je 0x3688058
test ebp, 0x40
je 0x3688025
test eax, eax
je 0x3688025
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0xc00000ba
jmp 0x3687f46
cmp dword [esp + 0x78], 0xffffffff
je 0x3688025
cmp ebx, 1
jne 0x368804f
test esi, esi
je 0x3688025
push dword [esp + 0x3c]
mov ecx, dword [esp + 0x4cc]
lea eax, [esp + 0x2c]
push eax
call fcn.03682120
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x2c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
je 0x3688058
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push ebp
push dword [esp + 0x4e0]
mov eax, dword [ecx]
lea edx, [esp + 0x44]
push edi
push edx
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x3688077
lea edi, [eax + 1]
jmp 0x3688152
cmp ebx, 3
jne 0x3688025
test esi, esi
je 0x3688025
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0xc0000103
jmp 0x3687f46
cmp ebx, 1
je 0x3687f2a
cmp ebx, 4
je 0x3687f2a
mov edx, dword [esp + 0x4d4]
and edx, 0xffffff7f
test esi, esi
jne 0x36880a0
and edx, 0xffffffef
or edx, 0x20
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x24]
push esi
push ebp
push dword [esp + 0x4e0]
mov eax, dword [ecx]
push edx
push edi
lea edx, [esp + 0x4c]
push edx
call dword [eax + 0xc]
mov ecx, eax
test ecx, ecx
jne 0x3687f2a
cmp dword [esp + 0x78], 0xffffffff
lea edi, [eax + 2]
je 0x3688152
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x70]
call fcn.036821d0
lea ecx, [esp + 0x6c]
mov eax, dword [eax + 4]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.03682040
push 8
mov ecx, dword [eax]
mov dword [esp + 0x44], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x38]
push eax
call dword [0x1011f348]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x34]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x3688152
mov edx, dword [esp + 0x14]
test edx, 0x20
jne 0x3688152
mov ecx, dword [esp + 0x18]
or edx, 0x20
mov dword [esp + 0x14], edx
push edx
lea edx, [esp + 0x34]
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
jmp 0x3688152
or edi, 0xffffffff
mov esi, dword [esp + 0x4bc]
lea eax, [esp + 0x38]
mov edx, dword [esp + 0x4c4]
lea ecx, [esp + 0x30]
push ebp
push esi
push dword [esp + 0x2c]
push eax
call fcn.036b4370
add esp, 0x10
mov esi, dword [eax]
test esi, esi
je 0x3688183
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x3688199
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x30], 0
cmp ebx, 4
je 0x36881a3
cmp ebx, 5
jne 0x3688202
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
test byte [esp + 0x1c], 0x10
jne 0x36881f7
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
push dword [esp + 0x44]
push dword [esp + 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x36881f7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, 1
mov eax, 3
cmove edi, eax
push dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
push esi
call fcn.03686a80
mov ecx, dword [esp + 0x4b8]
mov dword [ecx], eax
mov eax, dword [esp + 0x4cc]
mov dword [eax + 4], edi
mov dword [eax], 0
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0
test esi, esi
je 0x3687f46
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x3687f46
test ebx, ebx
jne 0x3688735
mov ebx, dword [esp + 0x4c4]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x28]
mov edi, eax
test esi, esi
jne 0x3688a09
xor eax, eax
cmp ax, word [esp + 0x38]
jne 0x36882ab
cmp edi, 2
jne 0x36882ab
mov eax, dword [esp + 0x4f0]
mov dword [eax], esi
mov eax, dword [esp + 0x4ec]
test ebp, 0x40
je 0x3688a55
mov dword [eax], 0xc00000ba
jmp 0x3688d29
mov eax, dword [ebx]
lea ecx, [esp + 0x2a8]
push ecx
mov ecx, ebx
call dword [eax + 0x30]
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0xa0]
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x2c]
push dword [esp + 0x18]
lea edx, [esp + 0x20]
push edi
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x54]
mov eax, dword [eax + 4]
push edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], eax
mov ecx, dword [ecx + 0x138]
push edx
lea edx, [esp + 0x24]
push edx
mov eax, dword [ecx]
call dword [eax + 0xa8]
mov ecx, dword [esp + 0xa4]
lea eax, [esp + 0xa8]
cmp eax, ecx
je 0x3688320
call fcn.03707920
mov ecx, dword [esp + 0x2ac]
lea eax, [esp + 0x2b0]
cmp eax, ecx
je 0x3688337
call fcn.03707920
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x28]
push 0x100f7c80
xor esi, esi
push eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x5c], esi
call dword [0x1011f448]
mov ebx, dword [esp + 0x4bc]
lea ecx, [esp + 0x54]
mov eax, dword [edi]
push ecx
push ebp
push dword [esp + 0x4e0]
lea ecx, [esp + 0x34]
push ebx
push ecx
mov ecx, edi
call dword [eax + 0x10]
test eax, eax
je 0x3688396
mov ecx, dword [esp + 0x4f0]
and eax, 0xefffffff
mov dword [ecx], esi
mov ecx, dword [esp + 0x4ec]
mov dword [ecx], eax
jmp 0x36886fe
mov dword [esp + 0x1c], esi
cmp word [esp + 0x38], si
jbe 0x3688542
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
mov edi, dword [esp + 0x4d8]
push edx
push ebp
push edi
mov dword [esp + 0x30], esi
lea edx, [esp + 0x44]
mov eax, dword [ecx]
push ebx
push edx
call dword [eax + 0x10]
mov edx, eax
mov ecx, edx
and ecx, 0xefffffff
cmp ecx, 0xc0000034
jne 0x3688507
mov edx, dword [esp + 0x4d4]
lea esi, [esp + 0x24]
mov ecx, dword [esp + 0x18]
and edx, 0xffffff6f
push esi
push ebp
push edi
mov eax, dword [ecx]
or edx, 0x20
push edx
push ebx
lea edx, [esp + 0x4c]
push edx
call dword [eax + 0xc]
mov esi, dword [esp + 0x5c]
mov edx, eax
test edx, edx
jne 0x368850f
mov dword [esp + 0x1c], 2
cmp dword [esp + 0x78], 0xffffffff
je 0x36884a2
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x70]
call fcn.036821d0
lea ecx, [esp + 0x6c]
mov eax, dword [eax + 4]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.03682040
push 8
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x30]
push eax
call dword [0x1011f348]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x2c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x36884a2
mov edx, dword [esp + 0x40]
test edx, 0x20
jne 0x36884a2
mov ecx, dword [esp + 0x18]
or edx, 0x20
mov dword [esp + 0x40], edx
push edx
lea edx, [esp + 0x2c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x60]
call fcn.0364c320
mov eax, dword [esp + 0x30]
test eax, eax
je 0x36884f7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x3688550
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x3688550
test edx, edx
je 0x3688419
mov eax, dword [esp + 0x4f0]
and edx, 0xefffffff
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], edx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x36886fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x36886fe
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x60]
call fcn.0364c320
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x28]
cmp eax, 2
je 0x368859d
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x368859d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push ebp
push ebx
push dword [esp + 0x64]
lea ecx, [esp + 0x4c]
push eax
call fcn.036b4370
add esp, 0x10
mov edi, dword [eax]
test edi, edi
je 0x36885c4
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x36885da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x40], 0
push dword [esp + 0x50]
mov ebx, dword [esp + 0x50]
mov ecx, ebx
push edi
call fcn.03686a80
mov ecx, dword [esp + 0x4b8]
mov dword [ecx], eax
lea ecx, [esp + 0x4c]
push dword [ebx + 0x138]
call fcn.036a5490
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push dword [esp + 0x4c4]
mov ecx, ebx
call fcn.03686ef0
mov esi, dword [esp + 0x30]
test eax, eax
jne 0x36886d0
mov ebp, dword [esp + 0x4c4]
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax + 0xc]
mov edx, dword [esi]
mov ecx, esi
mov ebx, eax
call dword [edx + 0xc]
cmp ebx, eax
jne 0x36886d0
mov eax, dword [ebp]
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call dword [eax + 0x38]
lea edx, [esp + 0x30]
push edx
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x40]
push dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x3688683
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x50]
test eax, eax
je 0x3688691
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [esp + 0x4c]
call fcn.036a54c0
mov eax, dword [esp + 0x4cc]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov dword [eax], 0
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0
jmp 0x36886f0
mov eax, dword [esp + 0x4f4]
mov dword [eax], 1
test esi, esi
je 0x36886e7
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [esp + 0x4c]
call fcn.036a54c0
test edi, edi
je 0x36886fa
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov esi, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
test eax, eax
je 0x3688714
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x54], 0
test esi, esi
je 0x368871e
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x3688d29
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x3688d29
cmp ebx, 2
jne 0x368892f
test esi, esi
je 0x368874e
test ebp, 0x40
jne 0x3688a09
xor eax, eax
cmp ax, word [esp + 0x38]
jne 0x36887a3
test ebp, 0x40
je 0x3688a41
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x28]
push 0x100f7c80
push eax
call dword [0x1011f448]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x3688a41
test dword [esp + 0x1c], 0x10
je 0x3688a41
jmp 0x3688aa8
test esi, esi
jne 0x3688a68
mov edx, dword [esp + 0x4d4]
lea esi, [esp + 0x14]
mov ecx, dword [esp + 0x18]
and edx, 0xffffff6f
push esi
push ebp
push dword [esp + 0x4e0]
or edx, 0x20
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
push edx
push edi
lea edx, [esp + 0x4c]
push edx
call dword [eax + 0xc]
test eax, eax
je 0x3688800
mov ecx, dword [esp + 0x4f0]
and eax, 0xefffffff
mov dword [ecx], 0
mov ecx, dword [esp + 0x4ec]
mov dword [ecx], eax
jmp 0x3688918
cmp dword [esp + 0x78], 0xffffffff
je 0x3688889
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x70]
call fcn.036821d0
lea ecx, [esp + 0x6c]
mov eax, dword [eax + 4]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.03682040
push 8
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x68]
push eax
call dword [0x1011f348]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x64]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x3688889
mov edx, dword [esp + 0x1c]
test edx, 0x20
jne 0x3688889
mov ecx, dword [esp + 0x18]
or edx, 0x20
mov dword [esp + 0x1c], edx
push edx
lea edx, [esp + 0x64]
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x4c4]
lea eax, [esp + 0x38]
push ebp
push edi
push dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
call fcn.036b4370
add esp, 0x10
mov esi, dword [eax]
test esi, esi
je 0x36888b3
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x36888c9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x1c], 0
push dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
push esi
call fcn.03686a80
mov ecx, dword [esp + 0x4b8]
mov dword [ecx], eax
mov eax, dword [esp + 0x4cc]
mov dword [eax + 4], 2
mov dword [eax], 0
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0
test esi, esi
je 0x3688918
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x3688d29
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x3688d29
cmp ebx, 1
je 0x3688947
cmp ebx, 3
je 0x3688947
cmp ebx, 4
je 0x3688947
cmp ebx, 5
jne 0x3688d29
test esi, esi
je 0x368897a
test ebp, 0x40
jne 0x3688a09
test esi, esi
je 0x368897a
cmp word [esp + 0x38], 0
jbe 0x368897a
cmp ebx, 1
je 0x3688a68
cmp ebx, 3
je 0x3688a68
jmp 0x3688a09
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x3c]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, eax
cmp ecx, 0xd0000034
jne 0x368899b
xor ecx, ecx
jmp 0x36889a8
test ecx, ecx
jne 0x3688d0d
mov ecx, 1
mov dword [esp + 0x1c], ecx
cmp ebx, 1
je 0x36889ba
cmp ebx, 4
je 0x36889ba
xor edx, edx
jmp 0x36889bf
mov edx, 1
xor eax, eax
test ecx, ecx
sete al
test edx, eax
je 0x36889e9
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0xc0000034
jmp 0x3688d29
test ecx, ecx
je 0x3688ac7
mov edi, dword [esp + 0x40]
shr edi, 4
and edi, 1
test esi, esi
je 0x3688a28
cmp ebx, 4
je 0x3688a09
cmp ebx, 5
jne 0x3688a28
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0xc000000d
jmp 0x3688d29
mov eax, ebp
and eax, 0x40
jne 0x3688a60
test esi, esi
jne 0x3688a64
test edi, edi
je 0x3688a60
cmp ebx, 4
je 0x3688a41
cmp ebx, 5
jne 0x3688a60
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0xc0000035
jmp 0x3688d29
test esi, esi
je 0x3688a87
test edi, edi
jne 0x3688a87
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0xc0000103
jmp 0x3688d29
test eax, eax
je 0x3688ad1
test edi, edi
je 0x3688ad1
xor eax, eax
cmp ax, word [esp + 0x38]
jne 0x3688aa8
mov ecx, dword [esp + 0x4c4]
mov eax, dword [ecx]
call dword [eax + 0x24]
test eax, eax
jne 0x3688acd
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0xc00000ba
jmp 0x3688d29
mov edi, dword [esp + 0x1c]
jmp 0x3688ad1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], 0
test ecx, ecx
jne 0x3688bbc
mov edx, dword [esp + 0x4d4]
mov edi, esi
and edx, 0xffffff7f
test esi, esi
jne 0x3688afa
and edx, 0xffffffef
or edx, 0x20
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x54]
push esi
mov esi, dword [esp + 0x4c0]
push ebp
push dword [esp + 0x4e0]
mov eax, dword [ecx]
push edx
push esi
lea edx, [esp + 0x4c]
push edx
call dword [eax + 0xc]
mov ecx, eax
test ecx, ecx
jne 0x3688ce1
cmp dword [esp + 0x78], 0xffffffff
mov esi, 2
mov dword [esp + 0x14], esi
je 0x3688bf2
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x70]
call fcn.036821d0
lea ecx, [esp + 0x6c]
mov eax, dword [eax + 4]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.03682040
push 8
mov ecx, dword [eax]
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x68]
push eax
call dword [0x1011f348]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x64]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x3688bf2
mov edx, dword [esp + 0x1c]
test edx, 0x20
jne 0x3688bf2
mov ecx, dword [esp + 0x18]
or edx, 0x20
mov dword [esp + 0x1c], edx
push edx
lea edx, [esp + 0x64]
mov eax, dword [ecx]
push edx
call dword [eax + 0x1c]
jmp 0x3688bf2
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x54]
mov esi, dword [esp + 0x4bc]
push edx
push ebp
push dword [esp + 0x4e0]
mov eax, dword [ecx]
lea edx, [esp + 0x44]
push esi
push edx
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x3688ce1
mov esi, 1
mov dword [esp + 0x14], esi
cmp ebx, 4
je 0x3688bfc
cmp ebx, 5
jne 0x3688c4a
test edi, edi
jne 0x3688c3b
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], edi
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x3688c3b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, 1
mov eax, 3
cmove esi, eax
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x4c4]
lea eax, [esp + 0x38]
push ebp
push dword [esp + 0x4c0]
lea ecx, [esp + 0x24]
push dword [esp + 0x5c]
push eax
call fcn.036b4370
add esp, 0x10
mov esi, dword [eax]
test esi, esi
je 0x3688c7a
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x3688c90
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x1c], 0
push dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
push esi
call fcn.03686a80
mov ecx, dword [esp + 0x4b8]
mov dword [ecx], eax
mov eax, dword [esp + 0x4cc]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov dword [eax], 0
mov eax, dword [esp + 0x4f0]
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], 0
test esi, esi
je 0x3688cfd
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x3688cfd
mov eax, dword [esp + 0x4f0]
and ecx, 0xefffffff
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], ecx
mov eax, dword [esp + 0x54]
test eax, eax
je 0x3688d29
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x3688d29
mov eax, dword [esp + 0x4f0]
and ecx, 0xefffffff
mov dword [eax], 0
mov eax, dword [esp + 0x4ec]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x3688d37
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4a4
ret 0x40