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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ca510
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x521da0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x521da0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x60]
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x34], eax
call dword [0x4ce778]
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x78], ebx
mov ecx, esi
mov byte [esp + 0xa8], 1
call fcn.00469480
cmp dword [esi + 0x228], 4
jne 0x470cad
mov eax, dword [esi + 0x47c]
mov ecx, dword [esi + 0x478]
lea edi, [esi + 0x3e8]
mov dword [esi + 0x21c], eax
mov dword [esi + 0x218], ecx
mov dword [esi + 0x1c8], eax
mov dword [esi + 0x1c4], ecx
mov dword [esp + 0x20], edi
jmp 0x470cb1
mov edi, dword [esp + 0x20]
mov ecx, dword [esi + 0x1c4]
mov dword [esp + 0x24], ecx
cmp dword [edi + 0x5c], ebx
je 0x470f17
mov edx, dword [esi + 0xde4]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x400
mov dword [esp + 0x4c], 0x300
mov eax, dword [edx]
mov ecx, dword [eax]
push 0x2000
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0x58]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov ecx, dword [esi + 0x4d4]
mov edx, dword [esi + 0x4d8]
mov dword [esp + 0x2c], ecx
mov dword [edi + 0x5c], ebx
mov ecx, dword [edi + 0x2c]
sub ecx, dword [edi + 0x28]
mov dword [esp + 0x30], edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], ebx
jle 0x470eff
mov dword [esp + 0x14], ebx
mov ecx, dword [edi + 0x2c]
sub ecx, dword [edi + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x470d64
call fcn.00496353
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x88]
call fcn.00402800
mov eax, dword [esp + 0x90]
mov ebx, dword [esi + 0x468]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebx + 0x10]
sar ecx, 1
imul ecx, dword [esi + 0x4d4]
sub eax, ecx
mov ecx, dword [esp + 0x90]
cdq
sub eax, edx
sar eax, 1
add dword [esi + 0x1c4], eax
mov eax, dword [ebx + 0xc]
sub eax, dword [esi + 0x4d8]
xor ebx, ebx
cdq
sub eax, edx
sar eax, 1
add dword [esi + 0x1c8], eax
cmp ecx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
jle 0x470ed0
lea edi, [ebx + 1]
cmp ebx, dword [esp + 0x90]
jbe 0x470de4
call fcn.00496353
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x470dfc
lea eax, [esp + 0x80]
mov dl, byte [eax + ebx]
mov byte [esp + 0x10], dl
cmp edi, dword [esp + 0x90]
jbe 0x470e11
call fcn.00496353
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x470e29
lea eax, [esp + 0x80]
cmp byte [esp + 0x10], 0xfe
mov cl, byte [edi + eax]
mov byte [esp + 0x12], 0
je 0x470ea0
cmp cl, 0xfe
je 0x470ea0
mov al, byte [esi + 0xd15]
mov dl, byte [esi + 0x8c8]
xor byte [esp + 0x10], al
add dl, al
dec dl
xor cl, dl
push 0
mov byte [esp + 0x15], cl
lea eax, [esp + 0x14]
add edi, 2
push eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x44], edi
mov edi, dword [esi + 0xd10]
mov ecx, esi
add ebx, 2
mov dword [esi + 0xd10], 0
call fcn.0046fab0
mov edx, dword [esi + 0xc8]
add edx, dword [esp + 0x2c]
mov dword [esi + 0xd10], edi
add dword [esi + 0x1c4], edx
mov edi, dword [esp + 0x38]
jmp 0x470ebe
inc ebx
inc edi
cmp ebx, dword [esp + 0x1c]
je 0x470ec8
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x4d8]
add dword [esi + 0x1c8], ecx
mov dword [esi + 0x1c4], eax
cmp ebx, dword [esp + 0x1c]
jl 0x470dd6
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add dword [esp + 0x14], 0x1c
mov dword [esi + 0x1c4], edx
mov ecx, dword [edi + 0x74]
sub ecx, eax
mov eax, dword [esp + 0x18]
add dword [esi + 0x1c8], ecx
inc eax
xor ebx, ebx
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
jl 0x470d40
mov edx, dword [esi + 0xde4]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov ecx, esi
call fcn.004698a0
mov ecx, dword [esi + 0x1c8]
mov eax, dword [esi + 0xd4]
add ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x1c4]
add eax, eax
add ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x220], ecx
mov dword [esi + 0x224], edx
mov dword [esi + 0x20], eax
lea ecx, [esp + 0x60]
mov dword [edi + 0x54], 1
mov byte [esp + 0xa8], 0
call dword [0x4ce78c]
cmp dword [esp + 0x94], 0x10
jb 0x470f77
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00485196
add esp, 4
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00496795
mov esp, ebp
pop ebp
ret 8