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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0xffffffff
push eax
push dword [esp + 0x68]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x4c], 0xffffffff
call fcn.0046aa40
mov edx, eax
add esp, 8
mov dword [esp + 0x1c], edx
xor ebp, ebp
jmp 0x46c2c0
mov ecx, ebp
mov ebx, 1
shl ebx, cl
lea ecx, [ebp + 0x10]
mov eax, ebx
bts eax, ecx
test edx, eax
mov edx, dword [esp + 0x60]
je 0x46c537
mov esi, dword [esp + ebp*4 + 0x34]
add edx, 0x60
mov dword [esp + 0x18], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edx
cmp esi, 0xffffffff
je 0x46c31d
push 4
lea eax, [esp + 0x28]
push eax
push edx
call fcn.00482440
mov edx, dword [esp + 0x20]
lea ecx, [ebp + 0x10]
add esp, 0xc
mov edi, eax
jmp 0x46c31f
xor edi, edi
and ebx, dword [esp + 0x1c]
mov eax, 1
neg ebx
sbb ebx, ebx
shl eax, cl
neg ebx
test dword [esp + 0x1c], eax
je 0x46c339
or ebx, 2
mov dword [esp + ebp*4 + 0x48], ebx
test edi, edi
je 0x46c3d8
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov edx, dword [eax + 0x6c]
test edx, edx
jle 0x46c361
add eax, 0x44
cmp esi, dword [eax]
je 0x46c3c8
inc ecx
add eax, 4
cmp ecx, edx
jl 0x46c355
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x13], al
mov esi, edi
test al, al
je 0x46c452
cmp ecx, ebx
je 0x46c3ad
mov eax, dword [edi + 0x24]
test cl, 1
je 0x46c387
dec eax
mov dword [edi + 0x24], eax
test byte [esp + 0x18], 2
mov edx, eax
mov ecx, dword [edi + 0x28]
je 0x46c397
dec ecx
mov dword [edi + 0x28], ecx
mov edx, ecx
test bl, 1
je 0x46c3a2
inc eax
mov dword [edi + 0x24], eax
test bl, 2
je 0x46c3ad
lea eax, [ecx + 1]
mov dword [edi + 0x28], eax
mov ebx, dword [edi + 0x28]
mov esi, edi
neg ebx
sbb ebx, ebx
xor eax, eax
and ebx, 2
cmp dword [edi + 0x24], eax
setne al
or ebx, eax
jmp 0x46c4c2
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + ecx*4 + 0x58]
mov al, 1
mov dword [esp + 0x18], ecx
jmp 0x46c369
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
cmp esi, 0xffffffff
je 0x46c3fb
push 4
lea eax, [esp + 0x2c]
push eax
push edx
call fcn.00482440
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x46c450
push 0x2c
push 1
call dword [0x59ed54]
mov esi, eax
add esp, 8
test esi, esi
je 0x46c52a
push fcn.0042a7f0
push 0x46a6a0
push 0x46a6c0
push 0xd
push esi
call fcn.00482350
add esp, 0x14
push esi
test eax, eax
jne 0x46c521
push 4
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x20]
call fcn.00482100
add esp, 0x10
test eax, eax
je 0x46c504
mov edi, esi
inc dword [esi + 0x20]
test bl, 1
je 0x46c466
inc dword [esi + 0x24]
lea ecx, [esi + 0x24]
mov dword [esp + 0x18], ecx
jmp 0x46c46d
lea eax, [edi + 0x24]
mov dword [esp + 0x18], eax
test bl, 2
je 0x46c47e
inc dword [esi + 0x28]
lea ebx, [esi + 0x28]
mov dword [esp + 0x20], ebx
jmp 0x46c485
lea eax, [edi + 0x28]
mov dword [esp + 0x20], eax
push dword [esp + 0x64]
lea eax, [esp + 0x68]
push 4
push eax
push esi
call fcn.00482100
add esp, 0x10
test eax, eax
je 0x46c52a
mov eax, dword [esp + 0x18]
xor ebx, ebx
cmp dword [eax], ebx
mov eax, dword [esp + 0x20]
setne bl
mov eax, dword [eax]
neg eax
sbb eax, eax
and eax, 2
or ebx, eax
cmp byte [esp + 0x13], 0
je 0x46c4cc
cmp dword [esi + 0x18], ebx
lea edi, [esi + 0x18]
je 0x46c4f0
jmp 0x46c4cf
add edi, 0x18
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x46c4ee
push dword [esi + 0x1c]
push dword [ecx + 0x38]
push ebx
push dword [esp + 0x3c]
push dword [esp + 0x74]
call eax
add esp, 0x14
mov dword [edi], ebx
mov edx, dword [esp + 0x1c]
inc ebp
cmp ebp, 5
jl 0x46c2c0
mov edx, dword [esp + 0x14]
jmp 0x46c53e
push esi
call fcn.00482300
push esi
call dword [0x59ed48]
add esp, 8
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
call dword [0x59ed48]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x4c
ret
add edx, 0x60
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x64]
xor ecx, ecx
mov dword [esp + 0x18], ecx
cmp dword [eax + 0x6c], ecx
jle 0x46c61f
mov ebx, 0x58
mov eax, dword [esp + 0x64]
mov edi, dword [ebx + eax - 0x14]
xor eax, eax
test ebp, ebp
jle 0x46c573
cmp edi, dword [esp + eax*4 + 0x34]
je 0x46c606
inc eax
cmp eax, ebp
jl 0x46c564
mov dword [esp + 0x30], edi
cmp edi, 0xffffffff
je 0x46c606
push 4
lea eax, [esp + 0x34]
push eax
push edx
call fcn.00482440
mov esi, eax
add esp, 0xc
test esi, esi
je 0x46c602
mov ecx, dword [esp + 0x64]
mov eax, dword [ebx + ecx]
mov ecx, dword [esi + 0x20]
dec ecx
mov dword [esi + 0x20], ecx
test al, 2
je 0x46c5ab
dec dword [esi + 0x28]
test al, 1
je 0x46c5b2
dec dword [esi + 0x24]
test ecx, ecx
jne 0x46c5f2
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x46c5d3
push dword [esi + 0x1c]
push dword [ecx + 0x38]
push 4
push edi
push dword [esp + 0x74]
call eax
add esp, 0x14
push esi
mov dword [esp + 0x30], edi
call fcn.00482300
push 4
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x20]
call fcn.00482290
add esp, 0x10
jmp 0x46c602
push 4
lea eax, [esp + 0x68]
push eax
push esi
call fcn.00482290
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x64]
inc ecx
mov edx, dword [esp + 0x14]
add ebx, 4
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0x6c]
jl 0x46c556
lea esi, [ebp*4]
push esi
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x6c]
add eax, 0x44
push eax
call fcn.0043d170
push esi
lea eax, [esp + 0x58]
push eax
mov eax, dword [esp + 0x78]
add eax, 0x58
push eax
call fcn.0043d170
mov eax, dword [esp + 0x7c]
add esp, 0x18
pop edi
pop esi
mov dword [eax + 0x6c], ebp
xor eax, eax
pop ebp
pop ebx
add esp, 0x4c
ret