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

Disassembly:
push 0xffffffffffffffff
push 0x5341c8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5801d4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebp, ecx
mov ebx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x84]
mov dword [ebp + 0x178], ebx
mov dword [ebp + 0x168], ebx
mov dword [ebp + 0x170], ebx
mov dword [ebp + 0x17c], eax
mov dword [ebp + 0x16c], eax
mov dword [ebp + 0x174], eax
cmp ebx, edi
jne 0x471000
cmp eax, dword [esp + 0x80]
jl 0x471000
xor eax, eax
jmp 0x4715a5
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], 0x54bb4c
mov dword [esp + 0x70], esi
cmp dword [ebp + 0x78], esi
jne 0x471033
cmp dword [ebp + 0x84], esi
je 0x471202
push esi
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.0046aaf0
cmp eax, esi
jne 0x4710b6
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.00469150
mov esi, dword [esp + 0x20]
mov ecx, dword [ebp + 0x2e0]
mov eax, esi
shl eax, 5
mov eax, dword [eax + ecx + 0x10]
test eax, eax
jle 0x4710a0
push 1
push eax
push esi
mov ecx, ebp
call fcn.0046d920
inc esi
mov dword [ebp + 0x170], esi
mov dword [ebp + 0x174], 0
mov dword [esp + 0x18], 1
push 0
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.0046aaf0
jmp 0x471118
mov edx, dword [ebp + 0x2e0]
mov ecx, ebx
shl ecx, 5
lea eax, [ecx + edx]
mov ecx, dword [eax + 0x10]
cmp ecx, esi
mov dword [esp + 0x20], ecx
jle 0x471118
cmp edi, ebx
jle 0x4710d8
push 1
push ecx
jmp 0x471108
mov esi, dword [eax + 8]
mov eax, dword [eax]
lea edx, [eax - 1]
xor eax, eax
test edx, edx
jle 0x4710fb
movzx ecx, word [esi + eax*2]
cmp cx, 0x20
je 0x4710f6
cmp cx, 9
jne 0x4710fb
inc eax
cmp eax, edx
jl 0x4710e6
cmp eax, dword [esp + 0x78]
jl 0x471118
mov eax, dword [esp + 0x20]
push 1
push eax
push ebx
mov ecx, ebp
call fcn.0046d920
mov dword [esp + 0x18], 1
mov ecx, dword [ebp + 0x2e0]
mov esi, edi
shl esi, 5
mov eax, dword [ecx + esi + 0x10]
test eax, eax
jle 0x471153
cmp edi, ebx
jle 0x471153
cmp dword [esp + 0x80], 0
jg 0x471140
cmp dword [esp + 0x78], 0
jle 0x471153
push 1
push eax
push edi
mov ecx, ebp
call fcn.0046d920
mov dword [esp + 0x18], 1
mov edx, dword [ebp + 0x2e0]
mov esi, dword [esi + edx]
dec esi
push esi
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.0046aaf0
mov esi, dword [esp + 0x20]
sub esi, dword [esp + 0x14]
push 0xffffffffffffffff
inc esi
push esi
lea ecx, [esp + 0x2c]
call fcn.004614f0
xor ecx, ecx
test esi, esi
jle 0x4711fc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
lea edi, [eax + eax*2]
add edi, edi
add edi, edi
mov dword [esp + 0x1c], edi
jmp 0x4711a4
mov eax, dword [esp + 0x14]
add eax, ecx
js 0x4712f7
cmp eax, dword [ebp + 0x15c]
jge 0x4712f7
mov eax, dword [ebp + 0x158]
add eax, edi
test ecx, ecx
jl 0x4712f7
cmp ecx, dword [esp + 0x2c]
jge 0x4712f7
mov edi, dword [eax]
mov dword [edx], edi
mov edi, dword [eax + 4]
mov dword [edx + 4], edi
mov eax, dword [eax + 8]
mov edi, dword [esp + 0x1c]
mov dword [edx + 8], eax
inc ecx
add edi, 0xc
add edx, 0xc
cmp ecx, esi
mov dword [esp + 0x1c], edi
jl 0x4711a0
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x78]
xor esi, esi
mov ecx, dword [esp + 0x88]
cmp ecx, esi
jbe 0x471353
cmp ecx, 2
jne 0x471222
lea ecx, [ebp + 0x2cc]
mov dword [esp + 0x1c], ecx
jmp 0x47122c
lea edx, [ebp + 0x2b8]
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x80]
push esi
push 1
push edi
push ecx
push ebx
push eax
push esi
mov ecx, ebp
call fcn.0046fc70
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d76f8
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x84]
add esp, 4
xor edi, edi
push edi
push 1
push ecx
mov ecx, dword [esp + 0x84]
push edx
push ebx
push ecx
push eax
mov ecx, ebp
mov dword [esp + 0x3c], eax
dec esi
call fcn.0046fc70
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x20]
push edx
push ebx
push esi
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 1
mov dword [esp + 0x48], edi
mov dword [esp + 0x6c], edi
call fcn.004aff00
mov edx, dword [ebp]
mov eax, dword [edx + 0x58]
mov ecx, ebp
call eax
test eax, eax
jne 0x4712ec
push 1
mov ecx, ebp
call fcn.0046a7f0
mov dword [esp + 0x60], 1
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 8]
cmp esi, edi
jge 0x4712fc
call fcn.004e0962
push 0xffffffffffffffff
lea edx, [esi + 1]
push edx
call fcn.00461fa0
mov eax, dword [esp + 0x1c]
lea edi, [esi + esi*2]
shl edi, 4
add edi, dword [eax + 4]
mov ecx, 0xc
lea esi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004d7727
add esp, 4
cmp dword [esp + 0x88], 1
jne 0x47134a
cmp dword [ebp + 0x2d4], 0
je 0x47134a
lea ecx, [ebp + 0x2cc]
call fcn.0046b280
mov edi, dword [esp + 0x84]
xor esi, esi
cmp ebx, edi
jne 0x471365
cmp dword [esp + 0x18], esi
jne 0x471365
mov eax, dword [ebp + 0x170]
jmp 0x471368
or eax, 0xffffffff
mov edx, dword [ebp + 0x170]
mov dword [ebp + 0x178], eax
mov eax, dword [ebp + 0x2e0]
shl edx, 5
mov ecx, dword [edx + eax]
dec ecx
mov dword [ebp + 0x17c], ecx
mov ecx, edi
mov esi, ebx
sub ecx, ebx
shl esi, 5
mov dword [esp + 0x84], ecx
cmp ebx, edi
jne 0x4713b7
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
sub ecx, edi
push ecx
push edi
lea ecx, [esi + eax]
call fcn.004b02a0
jmp 0x471438
mov edx, dword [esp + 0x78]
lea ecx, [esi + eax]
mov eax, dword [ecx]
sub eax, edx
push eax
push edx
call fcn.004b02a0
mov eax, dword [esp + 0x80]
mov ecx, dword [ebp + 0x2e0]
push eax
shl edi, 5
push 0
add ecx, edi
call fcn.004b02a0
mov eax, dword [ebp + 0x2e0]
mov edx, dword [edi + eax]
mov ecx, dword [edi + eax + 8]
push edx
push ecx
mov ecx, dword [esp + 0x80]
push ecx
lea ecx, [esi + eax]
call fcn.004b0220
cmp dword [esp + 0x78], 0
jne 0x471421
cmp dword [esp + 0x80], 0
jne 0x471421
mov eax, dword [ebp + 0x2e0]
mov edx, dword [edi + eax + 0x10]
mov dword [esi + eax + 0x10], edx
mov eax, dword [esp + 0x84]
push eax
lea ecx, [ebx + 1]
push ecx
mov ecx, ebp
call fcn.0046ba70
mov edi, dword [esp + 0x78]
cmp dword [ebp + 0x84], 0
je 0x47147f
push edi
lea edx, [esp + 0x7c]
push edx
mov ecx, ebp
mov dword [esp + 0x80], ebx
call fcn.0046af70
cmp dword [esp + 0x84], 0
jg 0x471463
test eax, eax
je 0x47147f
mov eax, dword [esp + 0x78]
push ebx
push edi
push eax
mov ecx, ebp
call fcn.0046c760
test eax, eax
je 0x47147f
mov dword [ebp + 0x174], 0
cmp dword [ebp + 0x78], 0
jne 0x471492
cmp dword [ebp + 0x84], 0
je 0x471573
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
dec eax
test eax, eax
jle 0x4714ac
push eax
push edi
lea ecx, [ebp + 0x154]
call fcn.00468f00
mov edx, dword [ebp + 0x2e0]
mov esi, dword [esi + edx]
xor ecx, ecx
lea edx, [esi - 1]
test edi, edi
jl 0x4712f7
cmp edi, dword [ebp + 0x15c]
jge 0x4712f7
cmp dword [esp + 0x84], ecx
mov esi, dword [ebp + 0x158]
lea eax, [edi + edi*2]
lea eax, [esi + eax*4]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jle 0x471573
mov eax, dword [ebp + 0x15c]
lea ecx, [edi + 1]
cmp ecx, eax
mov dword [esp + 0x78], eax
jge 0x47155f
lea edx, [ecx + ecx*2]
add edx, edx
add edx, edx
test edx, edx
jl 0x4712f7
cmp ecx, dword [ebp + 0x15c]
jge 0x4712f7
mov eax, dword [ebp + 0x158]
mov esi, dword [eax + edx]
sub esi, dword [esp + 0x84]
mov edi, dword [eax + edx + 4]
mov ebx, dword [eax + edx + 8]
add eax, edx
cmp ecx, dword [ebp + 0x15c]
jge 0x4712f7
mov eax, dword [ebp + 0x158]
add eax, edx
mov dword [eax], esi
inc ecx
add edx, 0xc
cmp ecx, dword [esp + 0x78]
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
jl 0x471507
mov ebx, dword [esp + 0x7c]
mov dword [ebp + 0x178], 0xffffffff
mov dword [ebp + 0x17c], 0
cmp dword [ebp + 0x78], 0
je 0x471587
push ebx
push ebx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.0046d2a0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x70], 0xffffffff
test eax, eax
je 0x4715a0
push eax
call fcn.004d7727
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x14