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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xc4]
cmp eax, dword [ecx + 8]
jbe 0x46c143
sub esp, 0x144
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0
mov eax, dword [esp + 0x14c]
test eax, eax
je 0x46b990
mov ecx, dword [esp + 0x15c]
test ecx, ecx
jne 0x46b5ef
lea ecx, [0x826220]
mov edx, dword [ecx + 0x20]
test edx, edx
jne 0x46b5fc
lea edx, [0x826260]
mov ebx, dword [ecx + 0x18]
cmp ebx, 3
jg 0x46b954
jl 0x46b918
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xcc], edx
mov ebx, dword [ecx + 4]
mov ebp, dword [ecx]
test ebx, ebx
jne 0x46b62e
mov ebx, dword [esp + 0x148]
jmp 0x46b667
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov ecx, dword [esp + 0x148]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.0046b150
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test eax, eax
jne 0x46b8e8
mov eax, ebp
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0046c280
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
test ecx, ecx
je 0x46b68b
xor edx, edx
jmp 0x46b697
test ebx, ebx
jbe 0x46c139
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], eax
test ecx, ecx
jne 0x46b8c6
mov dword [esp + 0xc8], edx
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 4]
test ecx, ecx
jne 0x46b700
mov eax, dword [esp + 0x150]
mov dword [esp], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x158]
mov dword [esp + 8], eax
call fcn.0046aac0
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xcc]
mov edx, dword [esp + 0xc8]
test ecx, ecx
jne 0x46b708
xor ecx, ecx
jmp 0x46b75e
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.0046c280
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
test eax, eax
je 0x46b72c
xor edx, edx
jmp 0x46b738
test ebx, ebx
jbe 0x46c130
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ecx
test eax, eax
jne 0x46b8a4
mov eax, dword [esp + 0xcc]
mov ecx, edx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0xd8], ecx
mov ebx, dword [esp + 0xe4]
mov ebp, dword [ebx + 4]
mov esi, dword [ebx]
test ebp, ebp
jne 0x46b779
xor ebp, ebp
jmp 0x46b7c1
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0046c280
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
test ecx, ecx
je 0x46b79d
xor edx, edx
jmp 0x46b7a9
test ebx, ebx
jbe 0x46c127
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], eax
test ecx, ecx
jne 0x46b882
mov ebp, edx
mov dword [esp + 0xd4], ebp
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x58], 0
lea eax, [esp + 0x44]
mov dword [esp], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
call fcn.00471510
mov eax, dword [esp + 0x44]
cmp eax, 6
jae 0x46b80c
mov eax, 1
jmp 0x46b81a
jne 0x46b818
cmp dword [esp + 0x40], 1
setbe al
jmp 0x46b81a
xor eax, eax
mov byte [esp + 0x37], al
call fcn.0046fbe0
mov eax, dword [esp]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx + 0x2c]
test edx, edx
jne 0x46b83a
mov edx, eax
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0xe4]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x54], ecx
lea ebx, [0x60c880]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00447cc0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xe0], eax
mov ecx, dword [esp + 0xe4]
mov edx, dword [ecx + 0x18]
mov dword [esp + 0x64], edx
xor ebx, ebx
jmp 0x46b9cd
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
call fcn.00433170
add esp, 0x144
ret
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
call fcn.00433170
add esp, 0x144
ret
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
call fcn.00433170
add esp, 0x144
ret
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], edx
call fcn.00433170
add esp, 0x144
ret
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
lea eax, [0x6a5130]
mov dword [esp + 0x168], eax
lea eax, [0x6a44dc]
mov dword [esp + 0x16c], eax
call fcn.00433170
add esp, 0x144
ret
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
lea eax, [0x6a5130]
mov dword [esp + 0x168], eax
lea eax, [0x6a44e0]
mov dword [esp + 0x16c], eax
call fcn.00433170
add esp, 0x144
ret
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
lea eax, [0x6a5130]
mov dword [esp + 0x168], eax
lea eax, [0x6a44e0]
mov dword [esp + 0x16c], eax
call fcn.00433170
add esp, 0x144
ret
inc ebx
cmp ebx, edx
jge 0x46bb0a
mov ebp, dword [ecx + 0x18]
mov esi, dword [ecx + 0x14]
cmp ebx, ebp
jae 0x46c11e
mov ebp, dword [esi + ebx*4]
test ebp, ebp
jbe 0x46b9cc
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
cmp esi, edi
je 0x46ba1c
movzx edx, byte [esp + 0x37]
test dl, dl
je 0x46ba21
mov dword [esp + 0x60], ebp
and ebp, 0x10000003
cmp ebp, 3
jne 0x46ba16
mov ebp, dword [esp + 0x60]
mov esi, edi
jmp 0x46ba21
mov ebp, dword [esp + 0x60]
jmp 0x46ba21
movzx edx, byte [esp + 0x37]
mov edx, dword [esp + 0x54]
cmp ebx, edx
jae 0x46c115
mov dword [esp + 0x4c], ebx
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
lea ecx, [eax + ebx*4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 1
mov dword [esp + 0x18], 2
call fcn.0046f400
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
test eax, eax
jne 0x46bada
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0xe0]
mov edx, dword [ecx + eax*4]
mov dword [esp + 0x5c], edx
lea ebx, [0x618ae0]
mov dword [esp], ebx
call fcn.0040b380
mov eax, dword [esp + 4]
lea ecx, [0x46c1d0]
mov dword [eax], ecx
mov edx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov ebx, dword [esp + 0x5c]
mov dword [eax + 8], ebx
mov dword [esp], eax
call fcn.00432aa0
test eax, eax
jne 0x46bace
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x4c]
jmp 0x46b9cc
call fcn.00433170
add esp, 0x144
ret
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], edx
call fcn.00433170
add esp, 0x144
ret
lea edi, [esp + 0xfc]
xor eax, eax
call fcn.0045ebae
mov dword [esp], 2
call fcn.0046dd90
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 8]
mov dword [esp + 0x140], ecx
mov dword [esp + 0x168], edx
mov dword [esp + 0x16c], ebx
test ebp, ebp
jne 0x46bd4a
mov eax, dword [esp + 0x140]
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
lea ecx, [0x46c190]
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], eax
lea eax, [esp + 0xe8]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xa4]
mov dword [esp], eax
call fcn.00432b80
test eax, eax
jne 0x46bd3e
mov dword [esp + 0xfc], 0x48
mov dword [esp + 0x128], 0x100
mov edx, dword [esp + 0xcc]
movzx ebx, byte [edx]
test bl, bl
je 0x46bbe0
mov dword [esp + 0x128], 0x101
mov word [esp + 0x12c], 0
mov ebx, dword [edx + 0x2c]
test ebx, ebx
je 0x46bc4e
mov eax, dword [esp + 0x140]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x20000
lea eax, [edx + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00470f50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ecx
test edx, edx
jne 0x46bd1c
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0x54]
test ecx, ecx
jbe 0x46c10e
mov ebx, dword [esp + 0xe0]
mov ebp, dword [ebx]
mov dword [esp + 0x134], ebp
cmp ecx, 1
jbe 0x46c104
mov ebp, dword [ebx + 4]
mov dword [esp + 0x138], ebp
cmp ecx, 2
jbe 0x46c0fa
mov eax, dword [ebx + 8]
mov dword [esp + 0x13c], eax
mov eax, dword [edx + 0x24]
lea ebp, [ecx + eax]
mov dword [esp + 0x50], ebp
mov esi, dword [edx + 0x20]
cmp ecx, ebp
jb 0x46bca5
mov edi, ecx
jmp 0x46bce7
mov dword [esp + 0x64], eax
mov dword [esp + 0xdc], esi
lea eax, [0x60c880]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebp
call fcn.00447e40
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0xdc]
mov edi, dword [esp + 0x54]
mov ebx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x54], ecx
mov dword [esp + 0xd0], ebx
lea edx, [ebx + edi*4]
mov dword [esp], edx
mov dword [esp + 4], esi
shl eax, 2
mov dword [esp + 8], eax
call fcn.0045f2b0
mov eax, dword [esp + 0xd0]
movzx ecx, byte [esp + 0x37]
mov edx, dword [esp + 0x50]
xor ebx, ebx
jmp 0x46bd6d
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
call fcn.00433170
add esp, 0x144
ret
call fcn.00433170
add esp, 0x144
ret
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
call fcn.00433170
add esp, 0x144
ret
inc ebx
cmp ebx, edx
jge 0x46bd92
jae 0x46c0f1
mov ebp, dword [eax + ebx*4]
test cl, cl
je 0x46bd6c
and ebp, 0x10000003
cmp ebp, 3
jne 0x46bd6c
mov dword [eax + ebx*4], 0
jmp 0x46bd6c
xor ecx, ecx
xor ebx, ebx
jmp 0x46bd99
inc ecx
cmp ecx, edx
jge 0x46bdb8
jae 0x46c0e8
mov ebp, dword [eax + ecx*4]
test ebp, ebp
je 0x46bd98
cmp ebx, edx
jae 0x46c0df
mov dword [eax + ebx*4], ebp
inc ebx
jmp 0x46bd98
mov edx, dword [esp + 0x54]
cmp ebx, edx
ja 0x46c0d8
test ebx, ebx
je 0x46bdd8
mov ebp, dword [esp + 0xcc]
movzx esi, byte [ebp + 0x1c]
xor esi, 1
jmp 0x46bde1
mov ebp, dword [esp + 0xcc]
xor esi, esi
xchg esi, eax
mov byte [esp + 0x36], al
xchg esi, eax
mov dword [esp + 0x48], ebx
xchg esi, eax
test al, al
xchg esi, eax
je 0x46be77
mov edi, dword [esp + 0x140]
test ebx, ebx
jbe 0x46c0cf
mov dword [esp], edi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x20002
mov dword [esp + 0xc], eax
shl ebx, 2
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00470f50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ecx
test edx, edx
je 0x46be77
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
call fcn.00433170
add esp, 0x144
ret
mov eax, dword [esp + 0xe4]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.0046abc0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x168], ecx
mov dword [esp + 0x16c], edx
test ebx, ebx
jne 0x46c0ad
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx + 0xc]
or edx, 0x80400
mov ebx, dword [ecx + 0x10]
test ebx, ebx
je 0x46bf67
mov ebp, dword [ecx + 0x14]
mov esi, dword [ecx + 0x18]
mov dword [esp], ebx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xd8]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
movzx ebx, byte [esp + 0x36]
mov byte [esp + 0x14], bl
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xfc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x28], eax
call fcn.0046df00
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ecx
jmp 0x46bfd4
mov ebx, dword [ecx + 0x14]
mov ebp, dword [ecx + 0x18]
mov esi, dword [esp + 0xc8]
mov dword [esp], esi
mov esi, dword [esp + 0xd8]
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
movzx ebx, byte [esp + 0x36]
mov byte [esp + 0x10], bl
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xfc]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x24], eax
call fcn.0046f1c0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], ecx
mov eax, dword [esp + 0x168]
test eax, eax
jne 0x46c08b
mov eax, dword [esp + 0x74]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea ecx, [0x46c150]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x80]
mov dword [esp], eax
call fcn.00432b80
test eax, eax
jne 0x46c07f
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x160], eax
mov dword [esp + 0x164], ecx
mov dword [esp + 0x168], 0
mov dword [esp + 0x16c], 0
call fcn.00433170
add esp, 0x144
ret
call fcn.00433170
add esp, 0x144
ret
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
call fcn.00433170
add esp, 0x144
ret
mov dword [esp + 0x160], 0
mov dword [esp + 0x164], 0
call fcn.00433170
add esp, 0x144
ret
xor eax, eax
mov ecx, ebx
call fcn.0045e9c0
mov ecx, ebx
call fcn.0045ea00
mov eax, ebx
mov ecx, edx
call fcn.0045e9c0
mov eax, ecx
mov ecx, edx
call fcn.0045e9c0
mov eax, ebx
mov ecx, edx
call fcn.0045e9c0
mov eax, 2
call fcn.0045e9c0
mov eax, 1
call fcn.0045e9c0
xor eax, eax
call fcn.0045e9c0
mov eax, ebx
mov ecx, edx
call fcn.0045e9c0
mov eax, ebx
mov ecx, ebp
call fcn.0045e9c0
xor eax, eax
mov ecx, ebx
call fcn.0045e9c0
xor eax, eax
mov ecx, ebx
call fcn.0045e9c0
xor eax, eax
mov ecx, ebx
call fcn.0045e9c0
nop
call fcn.0045d530
jmp fcn.0046b580