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

Disassembly:
push 0xffffffffffffffff
push 0x5162f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
call fcn.00460d80
push 0xa
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x74], esi
mov dword [esp + 0x44], 0x520da8
call fcn.004de680
mov edi, dword [esp + 0x78]
mov dword [esp + 0x6c], 1
cmp dword [edi + 0x30], esi
je 0x4723aa
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
jmp 0x4723ae
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x80]
mov esi, dword [ecx + 8]
cmp eax, esi
jle 0x4723fb
sub eax, esi
push 0xffffffffffffffff
mov ebp, eax
lea edx, [esi + ebp]
push edx
call fcn.004de680
mov eax, ebp
dec ebp
test eax, eax
je 0x4723fb
lea eax, [esi*4]
lea ecx, [ebp + 1]
mov edx, dword [esp + 0x80]
add eax, 4
dec ecx
mov edx, dword [edx + 4]
mov dword [eax + edx - 4], 0
jne 0x4723e3
mov ecx, dword [ebx + 0x38]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x28], eax
jle 0x47270b
mov ecx, dword [ebx + 0x34]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x78], eax
lea esi, [eax + 0x18]
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.00474580
cmp eax, dword [esp + 0x74]
jne 0x4726f7
mov ecx, esi
call fcn.00474440
mov ebp, dword [ebx + 0x1c]
mov esi, eax
dec ebp
mov dword [esp + 0x1c], ebp
js 0x4726f7
mov edx, dword [ebx + 0x18]
mov ecx, dword [esi]
push ecx
lea eax, [edx + ebp*4]
mov eax, dword [edx + ebp*4]
push eax
nop
call fcn.006084c7
add esp, 8
test eax, eax
je 0x47246b
dec ebp
jns 0x472445
mov dword [esp + 0x1c], ebp
jmp 0x4726f7
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x4726f7
mov eax, dword [ebx + 4]
mov eax, dword [eax + ebp*4]
test eax, eax
je 0x4726f7
mov ecx, dword [esp + 0x78]
push eax
push ecx
call fcn.004722f0
add esp, 8
test eax, eax
jle 0x4726f7
mov ecx, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
call fcn.00474440
mov esi, dword [edi + 8]
mov ebp, eax
dec esi
js 0x4724d5
mov edx, dword [edi + 4]
mov ecx, dword [ebp]
push ecx
lea eax, [edx + esi*4]
mov eax, dword [edx + esi*4]
push eax
nop
call fcn.006084d0
add esp, 8
test eax, eax
je 0x472502
dec esi
jns 0x4724b7
or ebx, 0xffffffff
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x44]
mov edx, dword [eax + 0x1a8]
lea eax, [ecx - 1]
test eax, eax
jl 0x47250a
mov ecx, dword [esp + 0x40]
lea ecx, [ecx + eax*4]
cmp dword [ecx], edx
je 0x472506
dec eax
sub ecx, 4
test eax, eax
jge 0x4724f4
jmp 0x47250a
mov ebx, esi
jmp 0x4724d8
mov ebp, eax
jmp 0x47250d
or ebp, 0xffffffff
cmp ebx, 0xffffffff
jne 0x47258d
mov ecx, dword [esp + 0x14]
call fcn.00474440
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
call fcn.0050b606
lea ecx, [esp + 0x50]
mov dword [esp + 0x2c], 0
call fcn.00473130
push 0x32
push 0
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], 2
call fcn.004de680
lea edx, [esp + 0x50]
lea ecx, [edi + 0x28]
push edx
call fcn.004737f0
mov eax, dword [edi + 0x30]
cmp eax, 1
jle 0x472579
mov ecx, dword [edi + 0x2c]
lea eax, [eax + eax*4]
mov edx, dword [ecx + 8]
lea ecx, [ecx + eax*4 - 0x14]
push edx
lea edx, [esp + 0x30]
push edx
push 0
call fcn.00404740
mov esi, dword [edi + 0x30]
lea ecx, [esp + 0x50]
dec esi
mov byte [esp + 0x6c], 1
call fcn.004080f0
mov ebx, esi
cmp ebp, 0xffffffff
jne 0x4725e1
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x44]
mov eax, dword [ecx + 0x1a8]
lea ecx, [esp + 0x3c]
push eax
push edx
call fcn.00431490
mov eax, dword [edi + 0x30]
mov dword [esp + 0x30], 0
dec eax
js 0x4725d8
lea ebp, [eax + eax*4]
lea esi, [eax + 1]
shl ebp, 2
mov eax, dword [edi + 0x2c]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [eax + ebp]
call fcn.004739b0
sub ebp, 0x14
dec esi
jne 0x4725c2
mov eax, dword [edi + 0x2c]
mov ebp, dword [eax + 8]
dec ebp
jmp 0x4725e5
add ebp, dword [esp + 0x24]
mov eax, dword [edi + 0x2c]
lea esi, [ebx + ebx*4]
shl esi, 2
mov ecx, dword [esi + eax + 4]
cmp dword [ecx + ebp*4], 0
je 0x472664
push 0x10
call fcn.0050b264
mov ebx, eax
add esp, 4
mov dword [esp + 0x38], ebx
test ebx, ebx
mov byte [esp + 0x6c], 3
je 0x47263f
mov eax, dword [edi + 0x2c]
lea edx, [esp + 0x34]
push edx
mov eax, dword [esi + eax + 4]
mov ecx, dword [eax + ebp*4]
add ecx, 0x18
call fcn.00474450
or dword [esp + 0x10], 1
push eax
mov eax, dword [esp + 0x7c]
push eax
mov ecx, ebx
mov byte [esp + 0x74], 4
call fcn.0046fa00
mov al, byte [esp + 0x10]
mov dword [esp + 0x6c], 1
test al, 1
je 0x47266f
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
and al, 0xfe
mov dword [esp + 0x10], eax
call fcn.0050b22e
jmp 0x47266f
mov esi, dword [esi + eax + 4]
mov ecx, dword [esp + 0x78]
mov dword [esi + ebp*4], ecx
mov ecx, dword [esp + 0x14]
call fcn.00474470
mov ebx, dword [esp + 0x7c]
mov ebp, eax
mov esi, dword [ebx + 8]
dec esi
js 0x4726a2
mov edx, dword [ebx + 4]
mov ecx, dword [ebp]
push ecx
lea eax, [edx + esi*4]
mov eax, dword [edx + esi*4]
push eax
nop
call fcn.006084d9
add esp, 8
test eax, eax
je 0x4726a5
dec esi
jns 0x472684
or esi, 0xffffffff
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov ebp, dword [ecx + edx*4]
test ebp, ebp
jge 0x4726b9
neg ebp
cmp esi, 0xffffffff
jne 0x4726e6
mov ecx, dword [esp + 0x14]
call fcn.00474470
mov ecx, dword [ebx + 8]
push eax
push ecx
mov ecx, ebx
call fcn.0050b606
mov ecx, dword [esp + 0x80]
push ebp
mov eax, dword [ecx + 8]
push eax
call fcn.00431490
jmp 0x4726f3
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 4]
mov dword [ecx + esi*4], ebp
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x47240c
mov dword [esp + 0x3c], 0x5205a4
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
test eax, eax
mov dword [esp + 0x60], 6
pop ebx
je 0x472730
push eax
call fcn.0050b204
add esp, 4
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x10