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

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0xb4], ecx
jne 0x471dd9
cmp dword [esp + 0x4c], ecx
je 0x471dd9
mov eax, dword [esi + 0x10c]
mov dword [esp + 0x10], eax
jmp 0x471de3
mov edx, dword [esi + 0x110]
mov dword [esp + 0x10], edx
cmp dword [esi + 0x78], ecx
je 0x471df2
mov eax, dword [esi + 0x15c]
mov dword [esp + 0x2c], eax
cmp dword [esi + 0x100], 1
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebp, edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x4c], edx
jne 0x471e38
mov ebx, dword [esi + 0x2e0]
mov eax, edi
shl eax, 5
mov eax, dword [ebx + eax]
dec eax
cmp eax, dword [esp + 0x38]
jne 0x471e2b
lea eax, [edi + 1]
mov dword [esp + 0x14], eax
mov ebp, eax
cmp dword [esp + 0x40], ecx
jne 0x471e38
lea eax, [edx - 1]
mov dword [esp + 0x4c], eax
cmp ebp, dword [esp + 0x4c]
mov dword [esp + 0x18], ebp
jg 0x471f91
mov ecx, ebp
shl ecx, 5
mov dword [esp + 0x28], ecx
nop
mov eax, dword [esi + 0x2e0]
add ecx, eax
mov eax, dword [ecx + 8]
xor ebx, ebx
cmp eax, ebx
je 0x471f6f
cmp word [eax], bx
je 0x471f6f
mov ecx, dword [ecx]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ebx, dword [esi + 0x108]
push ebx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x2c]
push edx
dec ecx
push ecx
push eax
call fcn.004684b0
mov eax, dword [esp + 0x34]
mov ecx, dword [0x589074]
cdq
idiv ecx
add esp, 0x14
cmp dword [esp + 0x44], 0
mov edi, eax
je 0x471eb0
add edi, dword [esp + 0x10]
jmp 0x471ec7
test edi, edi
je 0x471f67
sub edi, dword [esp + 0x10]
mov edx, 0
sets dl
dec edx
and edi, edx
xor ebp, ebp
cmp dword [esi + 0x88], ebp
jne 0x471f09
xor eax, eax
cdq
idiv ebx
mov eax, ebx
sub eax, edx
cdq
idiv ecx
cmp edi, eax
jl 0x471f09
mov ebx, dword [esi + 0x10c]
mov ecx, edi
sub ecx, eax
mov eax, ecx
cdq
idiv ebx
mov ebp, 1
imul ebx, eax
sub ecx, ebx
test eax, eax
jle 0x471f01
lea ebp, [eax + 1]
test ecx, ecx
jle 0x471f0f
add ebp, ecx
jmp 0x471f0f
test edi, edi
jle 0x471f0f
mov ebp, edi
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d76f8
add esp, 4
push 0
push edi
push 0
mov ebx, eax
push 0
push ebx
mov ecx, esi
call fcn.00468aa0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
push ebp
push ebx
push eax
push ecx
push eax
push 0
mov ecx, esi
call fcn.004715c0
add dword [esp + 0x1c], eax
push ebx
call fcn.004d7727
mov ebp, dword [esp + 0x18]
add esp, 4
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
inc eax
add ecx, 0x20
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
jle 0x471e50
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
cmp eax, 1
jne 0x471fbb
cmp ecx, eax
jle 0x471fe0
mov eax, dword [esi + 0x2c0]
sub eax, 1
js 0x471fe0
mov ebx, dword [esi + 0x2bc]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [ebx + eax + 0x24], ecx
jmp 0x471fe0
cmp eax, 2
jne 0x471fe0
cmp ecx, 1
jle 0x471fe0
mov eax, dword [esi + 0x2d4]
sub eax, 1
js 0x471fe0
mov ebx, dword [esi + 0x2d0]
lea eax, [eax + eax*2]
shl eax, 4
mov dword [eax + ebx + 0x24], ecx
xor eax, eax
mov dword [esi + 0x170], edi
mov dword [esi + 0x174], eax
cmp dword [esi + 0x78], eax
jne 0x471ffb
cmp dword [esi + 0x84], eax
je 0x472017
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esi + 0x15c]
je 0x472017
mov dword [esi + 0x178], 0xffffffff
mov dword [esi + 0x17c], eax
cmp dword [esi + 0x100], eax
je 0x4720c4
sub ebp, edi
neg ebp
sbb ebp, ebp
and ebp, dword [esp + 0x38]
mov dword [esi + 0x100], 1
mov dword [esi + 0x184], ebp
mov dword [esi + 0x180], edi
cmp dword [esp + 0x4c], edx
je 0x47205b
mov dword [esi + 0x188], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x18c], edx
jmp 0x47208e
mov ecx, dword [esi + 0x294]
dec ecx
cmp edx, ecx
jne 0x472081
mov ecx, dword [esi + 0x2e0]
mov dword [esi + 0x188], edx
shl edx, 5
mov edx, dword [ecx + edx]
dec edx
mov dword [esi + 0x18c], edx
jmp 0x47208e
inc edx
mov dword [esi + 0x188], edx
mov dword [esi + 0x18c], eax
cmp dword [esi + 0x190], eax
jle 0x4720b8
mov eax, dword [esi + 0x188]
mov ecx, dword [esi + 0x18c]
pop edi
mov dword [esi + 0x168], eax
mov dword [esi + 0x16c], ecx
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x1c
mov dword [esi + 0x168], edi
mov dword [esi + 0x16c], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x1c