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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2e4
mov eax, dword [0x51e494]
xor eax, esp
mov dword [esp + 0x2e0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0x6c], eax
push edi
lea eax, [esp + 0x48]
mov ebx, ecx
mov esi, edx
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], esi
call fcn.00403574
xor edi, edi
cmp dword [esi + 4], edi
jle 0x46c53f
lea eax, [esp + 0x48]
push eax
mov eax, ebx
call fcn.0046c44f
cmp eax, edi
je 0x46c53f
mov esi, eax
lea ecx, [esp + 0x48]
call fcn.00403514
mov eax, esi
jmp 0x46cc91
lea eax, [esp + 0x30]
push eax
call fcn.00403574
lea eax, [esp + 0x24]
push eax
call fcn.00403574
cmp byte [ebp + 0x10], 0
jne 0x46c5b8
lea eax, [esp + 0x28]
lea esi, [ebx + 0x54]
push eax
call fcn.0045c800
pop ecx
lea edi, [esp + 0x30]
call fcn.004444b1
lea ecx, [esp + 0x28]
call fcn.00403514
mov eax, edi
call fcn.0045c400
lea eax, [ebx + 0x5c]
lea edi, [esp + 0x24]
call fcn.004444b1
mov eax, edi
call fcn.0045c400
lea esi, [esp + 0x28]
mov ecx, ebx
call fcn.0046cca8
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.004446f1
mov ecx, esi
call fcn.00403514
mov esi, dword [esp + 0x2c]
xor edi, edi
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.00403574
cmp dword [esi + 4], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x1c], edi
jle 0x46cac4
push 0x260
call fcn.004af388
mov esi, eax
pop ecx
cmp esi, edi
je 0x46c62d
or dword [esi], 0xffffffff
lea eax, [esi + 0x10]
mov byte [esi + 8], 1
call fcn.0047e60d
lea eax, [esi + 0x258]
push eax
mov dword [esi + 0x250], edi
mov dword [esi + 0x254], edi
call fcn.00403574
jmp 0x46c62f
xor esi, esi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x46c687
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x28]
cmp edx, ecx
jb 0x46c654
lea edx, [ecx + eax*4]
lea ebx, [esp + 0x28]
cmp ebx, edx
jb 0x46c9c7
cmp eax, edi
jne 0x46c65d
xor ebx, ebx
inc ebx
jmp 0x46c66f
mov ebx, dword [esp + 0x10]
add ebx, ebx
cmp ebx, edi
jl 0x46c69c
cmp ebx, 0x1fffffff
ja 0x46c69c
push 4
push ebx
push ecx
call fcn.004adbd5
add esp, 0xc
cmp eax, edi
je 0x46c69c
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx*4]
cmp eax, edi
je 0x46c698
mov dword [eax], esi
inc dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
call fcn.004499bf
mov edi, dword [eax]
mov bl, byte [ebp + 0x10]
xor esi, esi
cmp dword [0x521fdc], esi
lea eax, [edi + 0x10]
mov dword [esp + 0x28], edi
mov dword [esp + 0x6c], eax
mov byte [edi + 8], bl
jg 0x46c6d7
lea eax, [esp + 0x48]
call fcn.0047e6a8
test al, al
je 0x46c9d1
lea eax, [esp + 0x20]
push eax
call fcn.00403574
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.004499bf
mov eax, dword [eax]
test bl, bl
je 0x46c7f8
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
call fcn.004499bf
mov edi, dword [esp + 0x18]
mov eax, dword [eax]
add edi, 0x6c
mov ecx, edi
call fcn.0046d417
mov ecx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x1c]
call fcn.004499bf
mov eax, dword [eax]
mov ecx, edi
call fcn.0046d417
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x18]
shr eax, 1
and al, 1
mov byte [esp + 0x3b], al
mov eax, dword [ebx]
mov dword [esi + 4], eax
mov edi, dword [ebx + 4]
lea eax, [ebx + 0x18]
push eax
mov eax, edi
mov dword [esp + 0x6c], edi
call fcn.0046cd20
lea ecx, [esp + 0x44]
push ecx
mov esi, eax
call fcn.004693ae
pop ecx
pop ecx
cmp edi, 9
je 0x46c771
cmp edi, 0xa
jne 0x46c784
mov edi, dword [esp + 0x28]
add edi, 0x258
lea eax, [esp + 0x40]
call fcn.004444b1
lea eax, [esp + 0x3c]
push eax
lea esi, [esp + 0x44]
call fcn.0045c800
pop ecx
lea edi, [esp + 0x20]
call fcn.004444b1
lea ecx, [esp + 0x3c]
call fcn.00403514
movzx eax, byte [esp + 0x3b]
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
je 0x46c7b9
add eax, 4
jmp 0x46c7bb
xor eax, eax
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x6c]
lea ecx, [esi + 0xf0]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push 0
push dword [ebx + 0xc]
lea eax, [esi + 0x54]
push 0
push dword [ebx + 0x10]
call fcn.0047e724
lea ecx, [esp + 0x40]
test eax, eax
jne 0x46ca6f
call fcn.00403514
jmp 0x46c94e
mov ebx, dword [esp + 0x18]
add ebx, 0x90
mov ecx, ebx
call fcn.00473f08
mov esi, dword [eax + 4]
mov dword [esp + 0x68], esi
cmp esi, 9
je 0x46c81a
cmp esi, 0xa
jne 0x46c85e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.004499bf
mov eax, dword [eax]
mov ecx, ebx
call fcn.00473f08
mov ecx, dword [esp + 0x18]
push eax
mov eax, esi
call fcn.0046cd20
lea ecx, [esp + 0x38]
push ecx
mov esi, eax
call fcn.004693ae
pop ecx
pop ecx
add edi, 0x258
call fcn.004444b1
lea ecx, [esp + 0x34]
call fcn.00403514
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
call fcn.004499bf
mov eax, dword [eax]
mov ecx, ebx
call fcn.00473f08
push eax
lea eax, [esp + 0x48]
push eax
lea esi, [esp + 0x38]
call fcn.004693ae
xor edi, edi
push 0x24c
lea eax, [esp + 0xa8]
push edi
push eax
mov dword [esp + 0xac], edi
call fcn.004afbe0
add esp, 0x14
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x48]
call dword [0x4e52d4]
push 1
push edi
push edi
push dword [esp + 0xc0]
mov dword [esp + 0xa0], eax
call fcn.004b59d0
mov esi, eax
mov eax, dword [esp + 0xb8]
xor ecx, ecx
add esi, eax
mov ebx, edx
adc ebx, ecx
cmp dword [esp + 0x90], edi
je 0x46c8f2
push dword [esp + 0x90]
call dword [0x4e52f8]
mov eax, dword [esp + 0x68]
cmp eax, 6
je 0x46c900
cmp eax, 7
jne 0x46c906
lea eax, [esp + 0x24]
jmp 0x46c90f
mov ecx, dword [esp + 0x18]
call fcn.0046cd20
lea edi, [esp + 0x20]
call fcn.004444b1
mov eax, dword [esp + 0x18]
add eax, 0xf0
push eax
mov eax, edi
mov edi, dword [esp + 0x70]
push eax
xor eax, eax
push eax
push ebx
push esi
push eax
push eax
lea eax, [esp + 0x60]
call fcn.0047e724
lea ecx, [esp + 0x44]
test eax, eax
jne 0x46ca6f
call fcn.00403514
mov esi, dword [esp + 0x18]
lea eax, [esi + 0xa8]
push eax
push 1
lea ecx, [esp + 0x28]
call fcn.0045de10
cmp byte [esi + 0x88], 0
pop ecx
pop ecx
je 0x46c97f
cmp dword [esp + 0x68], 6
jne 0x46c97f
lea ebx, [esp + 0x20]
lea esi, [esp + 0x4c]
call fcn.0045b550
mov eax, dword [esp + 0x70]
cmp dword [eax], 0
je 0x46c9a2
push dword [esp + 0x6c]
call dword [0x521fe4]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x250], eax
mov dword [ecx + 0x254], edx
lea ecx, [esp + 0x20]
call fcn.00403514
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 4]
jge 0x46cac4
xor edi, edi
jmp 0x46c5f3
push 0x80004005
call fcn.004035ac
cmp dword [esp + 0x60], esi
je 0x46c9e5
push dword [esp + 0x60]
call dword [0x4e5314]
mov dword [esp + 0x60], esi
lea ecx, [esp + 0x58]
call fcn.00403514
lea esi, [esp + 0x4c]
call fcn.00445916
mov eax, dword [esp + 0x10]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x34], eax
jle 0x46ca39
mov eax, edi
lea ecx, [esp + 0xc]
call fcn.004499bf
mov esi, dword [eax]
cmp esi, ebx
je 0x46ca32
lea ecx, [esi + 0x258]
call fcn.00403514
lea eax, [esi + 0x10]
call fcn.0047e647
push esi
call fcn.004ada40
pop ecx
inc edi
cmp edi, dword [esp + 0x34]
jl 0x46ca07
cmp dword [esp + 0xc], ebx
je 0x46ca4d
push dword [esp + 0xc]
call fcn.004adb47
pop ecx
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00403514
lea ecx, [esp + 0x30]
call fcn.00403514
push 0xb
pop esi
jmp 0x46c52f
call fcn.00403514
lea ecx, [esp + 0x20]
call fcn.00403514
cmp dword [esp + 0x60], 0
je 0x46ca93
push dword [esp + 0x60]
call dword [0x4e5314]
and dword [esp + 0x60], 0
lea ecx, [esp + 0x58]
call fcn.00403514
lea esi, [esp + 0x4c]
call fcn.00445916
lea esi, [esp + 0xc]
call fcn.0046d438
lea ecx, [esp + 0x24]
call fcn.00403514
lea ecx, [esp + 0x30]
call fcn.00403514
push 0xe
jmp 0x46ca69
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
xor edi, edi
mov eax, esi
lea ecx, [esp + 0x74]
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], edi
call fcn.0047f097
mov dword [esp + 0x3c], eax
cmp eax, edi
je 0x46cbc5
mov esi, dword [0x4e5314]
cmp dword [esp + 0x88], edi
je 0x46cb2c
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x60], edi
je 0x46cb3c
push dword [esp + 0x60]
call esi
mov dword [esp + 0x60], edi
lea ecx, [esp + 0x58]
call fcn.00403514
lea esi, [esp + 0x4c]
call fcn.00445916
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x46cb8e
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.004499bf
mov esi, dword [eax]
cmp esi, edi
je 0x46cb87
lea ecx, [esi + 0x258]
call fcn.00403514
lea eax, [esi + 0x10]
call fcn.0047e647
push esi
call fcn.004ada40
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x46cb5c
cmp dword [esp + 0xc], edi
je 0x46cba2
push dword [esp + 0xc]
call fcn.004adb47
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.00403514
lea ecx, [esp + 0x30]
call fcn.00403514
mov esi, dword [esp + 0x3c]
jmp 0x46c52f
mov eax, dword [esi + 8]
lea ecx, [esp + 0x4c]
call fcn.0047e862
mov esi, dword [0x4e5314]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x88], edi
je 0x46cbf4
push dword [esp + 0x88]
call esi
mov dword [esp + 0x88], edi
cmp dword [esp + 0x60], edi
je 0x46cc04
push dword [esp + 0x60]
call esi
mov dword [esp + 0x60], edi
lea ecx, [esp + 0x58]
call fcn.00403514
lea esi, [esp + 0x4c]
call fcn.00445916
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x46cc56
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.004499bf
mov esi, dword [eax]
cmp esi, edi
je 0x46cc4f
lea ecx, [esi + 0x258]
call fcn.00403514
lea eax, [esi + 0x10]
call fcn.0047e647
push esi
call fcn.004ada40
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x46cc24
cmp dword [esp + 0xc], edi
je 0x46cc6a
push dword [esp + 0xc]
call fcn.004adb47
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.00403514
lea ecx, [esp + 0x30]
call fcn.00403514
lea ecx, [esp + 0x48]
call fcn.00403514
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2ec]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ada4b
mov esp, ebp
pop ebp
ret 0xc