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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cb830
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x522d80]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x522d80]
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 [0x4cf770]
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.0046a660
cmp dword [esi + 0x228], 4
jne 0x471d2d
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 0x471d31
mov edi, dword [esp + 0x20]
mov ecx, dword [esi + 0x1c4]
mov dword [esp + 0x24], ecx
cmp dword [edi + 0x5c], ebx
je 0x471f97
mov edx, dword [esi + 0xdc8]
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 0x471f7f
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 0x471de4
call fcn.00497123
mov eax, dword [edi + 0x28]
add eax, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x88]
call fcn.00402790
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 0x471f50
lea edi, [ebx + 1]
cmp ebx, dword [esp + 0x90]
jbe 0x471e64
call fcn.00497123
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x471e7c
lea eax, [esp + 0x80]
mov dl, byte [eax + ebx]
mov byte [esp + 0x10], dl
cmp edi, dword [esp + 0x90]
jbe 0x471e91
call fcn.00497123
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x471ea9
lea eax, [esp + 0x80]
cmp byte [esp + 0x10], 0xfe
mov cl, byte [edi + eax]
mov byte [esp + 0x12], 0
je 0x471f20
cmp cl, 0xfe
je 0x471f20
mov al, byte [esi + 0xcf9]
mov dl, byte [esi + 0x8ac]
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 + 0xcf4]
mov ecx, esi
add ebx, 2
mov dword [esi + 0xcf4], 0
call fcn.00470b30
mov edx, dword [esi + 0xc8]
add edx, dword [esp + 0x2c]
mov dword [esi + 0xcf4], edi
add dword [esi + 0x1c4], edx
mov edi, dword [esp + 0x38]
jmp 0x471f3e
inc ebx
inc edi
cmp ebx, dword [esp + 0x1c]
je 0x471f48
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 0x471e56
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 0x471dc0
mov edx, dword [esi + 0xdc8]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
mov ecx, esi
call fcn.0046aa80
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 [0x4cf784]
cmp dword [esp + 0x94], 0x10
jb 0x471ff7
mov ecx, dword [esp + 0x80]
push ecx
call fcn.00485fc1
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.00497565
mov esp, ebp
pop ebp
ret 8