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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
push eax
mov edi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [esp + 0x50], edi
mov dword [eax + 0xc], edx
call fcn.0043ace0
mov eax, dword [edi + 0xd8]
mov edx, dword [edi + 0xe0]
mov ecx, dword [edi + 0xdc]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xe4]
mov dword [ebp + 0x10], edx
mov edx, dword [edi]
mov edx, dword [edx + 0x178]
mov dword [ebp + 0x14], eax
lea eax, [esp + 0x88]
mov dword [ebp + 0xc], ecx
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
add dword [ebp + 8], eax
add dword [ebp + 0xc], ecx
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
mov ecx, dword [edi + 0x388]
sub dword [ebp + 0x10], edx
sub dword [ebp + 0x14], eax
test ecx, ecx
je 0x471917
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x471917
mov ecx, dword [edi + 0x388]
mov edx, dword [ecx]
mov eax, dword [edx + 0x88]
call eax
sub dword [ebp + 0x10], eax
mov ecx, dword [edi + 0x38c]
test ecx, ecx
je 0x471942
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x471942
mov ecx, dword [edi + 0x38c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x90]
call eax
sub dword [ebp + 0x14], eax
cmp dword [edi + 0x358], 0
jne 0x471954
push 0
push 0
jmp 0x472110
mov eax, dword [edi]
mov edx, dword [eax + 0x180]
mov ecx, edi
call edx
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
sub esi, dword [ebp + 8]
sub ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 0x38c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], ebx
test ecx, ecx
je 0x4719a0
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x4719a0
mov eax, dword [edi + 0x38c]
add esi, dword [eax + 0x358]
mov dword [esp + 0x44], esi
mov ecx, dword [edi + 0x388]
test ecx, ecx
je 0x4719c8
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x4719c8
mov ecx, dword [edi + 0x388]
add ebx, dword [ecx + 0x358]
mov dword [esp + 0x48], ebx
xor ebx, ebx
cmp dword [edi + 0x358], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
jle 0x471bcf
lea ebx, [ebx]
mov edx, dword [edi + 0x354]
mov esi, dword [edx + ebx*4]
mov eax, dword [esi]
mov edx, dword [eax + 0x100]
mov ecx, esi
call edx
test al, al
je 0x471bbe
mov eax, dword [esi]
mov edx, dword [eax + 0x12c]
mov ecx, esi
call edx
test al, al
jne 0x471bbe
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
mov ebx, dword [esp + 0x44]
mov edx, dword [edx + 0x74]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x74]
push eax
mov ecx, esi
mov dword [esp + 0x30], ebx
call edx
sub ebx, dword [esp + 0x7c]
mov eax, dword [esi]
mov edx, dword [eax + 0x88]
sub ebx, dword [esp + 0x74]
mov ecx, esi
call edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
mov ecx, esi
call edx
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
jg 0x471a7e
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x28]
test ecx, ecx
jg 0x471a98
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov dword [esp + 0x28], eax
mov ecx, eax
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jle 0x471aa2
mov ebx, eax
cmp dword [esp + 0x30], ecx
jle 0x471aac
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [esi]
mov eax, dword [eax + 0x14c]
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call eax
cmp dword [esp + 0x14], 0
jne 0x471ad0
inc dword [esp + 0x38]
jmp 0x471b14
mov edx, dword [esi]
mov eax, dword [edx + 0xa8]
mov ecx, esi
call eax
cmp dword [esp + 0x14], eax
jge 0x471af2
mov edx, dword [esi]
mov eax, dword [edx + 0xa8]
mov ecx, esi
call eax
mov dword [esp + 0x14], eax
mov edx, dword [esi]
mov eax, dword [edx + 0xb0]
mov ecx, esi
call eax
cmp dword [esp + 0x14], eax
jle 0x471b14
mov edx, dword [esi]
mov eax, dword [edx + 0xb0]
mov ecx, esi
call eax
mov dword [esp + 0x14], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x74]
lea eax, [esp + 0xa8]
push eax
mov ecx, esi
call edx
lea ebx, [eax + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
lea ecx, [esp + 0x98]
push ecx
mov ecx, esi
call edx
mov eax, dword [eax + 4]
add eax, dword [esp + 0x14]
xor ecx, ecx
add eax, dword [ebx]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
test eax, eax
setle cl
dec ecx
and ecx, eax
mov dword [esp + 0x10], ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
cmp dword [esp + 0x10], eax
jge 0x471b7a
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [esi]
mov eax, dword [edx + 0xa0]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jle 0x471ba0
mov edx, dword [esi]
mov eax, dword [edx + 0xa0]
mov ecx, esi
call eax
mov ecx, eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x74]
add ecx, edx
add eax, ecx
cmp dword [esp + 0x60], eax
jg 0x471bb6
mov dword [esp + 0x60], eax
inc dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
inc ebx
cmp ebx, dword [edi + 0x358]
mov dword [esp + 0x34], ebx
jl 0x4719f0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
dec eax
imul eax, dword [esp + 0x40]
add dword [esp + 0x18], eax
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x84], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x68], esi
jle 0x471c0f
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x18]
cdq
idiv ecx
xor ecx, ecx
cmp eax, esi
setl cl
dec ecx
and ecx, eax
mov dword [esp + 0x68], ecx
mov ecx, dword [edi + 0x388]
mov esi, dword [esp + 0x48]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x70], esi
mov dword [esp + 0x20], ebx
test ecx, ecx
je 0x471c44
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x471c44
mov ecx, dword [edi + 0x388]
sub ebx, dword [ecx + 0x360]
jmp 0x471c76
cmp dword [esp + 0x38], 0
jg 0x471c7a
mov edx, dword [edi]
mov eax, dword [edx + 0x190]
mov ecx, edi
call eax
cmp eax, 4
jne 0x471c6b
mov eax, esi
sub eax, dword [esp + 0x18]
cdq
sub eax, edx
sar eax, 1
add ebx, eax
jmp 0x471c76
cmp eax, 8
jne 0x471c7a
sub esi, dword [esp + 0x18]
add ebx, esi
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp dword [edi + 0x358], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
jle 0x4720fd
lea esp, [esp]
mov edx, dword [edi + 0x354]
mov eax, dword [esp + 0x24]
mov esi, dword [edx + eax*4]
mov edx, dword [esi]
mov eax, dword [edx + 0x100]
mov ecx, esi
call eax
test al, al
je 0x4720e8
mov edx, dword [esi]
mov eax, dword [edx + 0x12c]
mov ecx, esi
call eax
test al, al
je 0x471ce7
mov edx, dword [edi]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + 0x204]
push eax
mov ecx, edi
call edx
jmp 0x4720e8
mov eax, dword [esi]
mov edx, dword [eax + 0x74]
inc dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
sub eax, dword [esp + 0x54]
mov dword [esp + 0x70], ecx
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x88]
mov ecx, esi
call edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
mov ecx, esi
call edx
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
jg 0x471d54
mov eax, dword [esi]
mov edx, dword [eax + 0xa0]
mov ecx, esi
call edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
test eax, eax
jg 0x471d6c
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x2c], ecx
jle 0x471d7a
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x30], eax
jle 0x471d84
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
add ecx, eax
sub dword [esp + 0x18], ecx
cmp dword [esp + 0x5c], 1
jle 0x471da1
mov edx, dword [esp + 0x40]
sub dword [esp + 0x18], edx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esi]
push ecx
push edx
mov edx, dword [eax + 0x14c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call edx
cmp dword [esp + 0x14], 0
jne 0x471e3b
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
inc eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x14], ecx
cmp eax, dword [esp + 0x38]
jne 0x471df5
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x58]
mov edx, 0
sub eax, dword [esp + 0x18]
sets dl
dec edx
and edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
cmp dword [esp + 0x14], eax
jge 0x471e17
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
cmp dword [esp + 0x14], eax
jle 0x471e87
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov dword [esp + 0x14], eax
jmp 0x471e87
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
cmp dword [esp + 0x14], eax
jge 0x471e5d
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
mov ecx, esi
call edx
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jle 0x471e83
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
mov ecx, eax
mov dword [esp + 0x14], ecx
sub dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
setle cl
dec ecx
and ecx, eax
mov eax, ecx
mov dword [esp + 0x10], eax
jne 0x471ead
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jle 0x471eb9
mov dword [esp + 0x10], ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
cmp dword [esp + 0x10], eax
jge 0x471edb
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
mov dword [esp + 0x10], eax
mov edx, dword [edi]
mov eax, dword [edx + 0x188]
mov ecx, edi
call eax
cmp eax, 1
jne 0x471f9b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
lea eax, [edx + ecx]
mov ecx, dword [edi + 0x38c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x471f35
mov eax, dword [ecx]
mov edx, dword [eax + 0x100]
call edx
test al, al
je 0x471f35
mov ecx, dword [edi + 0x38c]
mov eax, dword [ecx + 0x358]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ecx + 0x360]
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
sub edx, eax
mov eax, dword [esp + 0x50]
add ecx, edx
add eax, ebx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x78]
add eax, ebx
push 0
mov dword [esp + 0x84], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
mov ecx, esi
call edx
jmp 0x4720bd
cmp eax, 2
jne 0x472038
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x38c]
mov edi, dword [ebp + 0x10]
test ecx, ecx
je 0x471fdb
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x471fdb
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x38c]
mov edx, dword [eax + 0x358]
sub edx, dword [eax + 0x360]
add edi, edx
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, edi
sub eax, dword [esp + 0x10]
add edx, ebx
sub eax, ecx
sub edi, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x50]
push 0
mov dword [esp + 0xa4], edi
lea edi, [ecx + edx]
mov edx, dword [esi]
mov edx, dword [edx + 0x5c]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0xb0]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xb4]
add edi, ebx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edi
mov ecx, esi
call edx
jmp 0x4720b9
mov ecx, dword [edi + 0x38c]
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x472067
mov edx, dword [ecx]
mov eax, dword [edx + 0x100]
call eax
test al, al
je 0x472067
mov ecx, dword [edi + 0x38c]
mov edx, dword [ecx + 0x360]
sub dword [esp + 0x1c], edx
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
add edx, ebx
lea edi, [ecx + eax]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x10]
add ecx, edx
mov edx, dword [esp + 0x50]
add ecx, eax
mov eax, dword [esp + 0x14]
push 0
add edx, eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0xc0]
mov dword [eax + 4], edi
add edx, ebx
mov ebx, dword [esi]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebx + 0x5c]
mov ecx, esi
call eax
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
lea eax, [ecx + edx]
add eax, esi
mov esi, dword [esp + 0x40]
add dword [esp + 0x34], eax
add ecx, edx
add ecx, dword [esp + 0x40]
add esi, eax
add ebx, esi
sub dword [esp + 0x70], ecx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x24]
inc eax
cmp eax, dword [edi + 0x358]
mov dword [esp + 0x24], eax
jl 0x471ca0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x84]
add eax, ecx
push eax
mov eax, dword [esp + 0x64]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0x208]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14