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

Disassembly:
sub esp, 0x54
push ebp
mov ebp, ecx
mov ecx, dword [ebp + 0x14]
xor edx, edx
cmp ecx, edx
mov dword [esp + 4], ebp
jne 0x477ffc
xor eax, eax
pop ebp
add esp, 0x54
ret 0x18
mov eax, dword [esp + 0x64]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
cmp dword [esi + 0xa8], edx
mov dword [esp + 0x70], eax
je 0x478305
cmp dword [ebp + 0x10], edx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
jbe 0x4782ed
nop
test ecx, ecx
ja 0x47804c
test eax, eax
jbe 0x4782ed
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + edx*4]
test esi, esi
je 0x47821b
mov eax, dword [esi + 0x14]
cmp ebx, eax
mov ebp, dword [esi + 0x10]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], eax
jb 0x478217
ja 0x47807a
cmp edi, ebp
jb 0x478217
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov eax, ecx
add eax, ebp
mov dword [esp + 0x3c], eax
mov eax, edx
mov dword [esp + 0x48], edx
adc eax, dword [esp + 0x30]
cmp ebx, eax
mov dword [esp + 0x44], ecx
ja 0x478217
jb 0x4780a6
cmp edi, dword [esp + 0x3c]
jae 0x4780d2
mov edx, dword [esp + 0x1c]
add edx, edi
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x20]
adc edx, ebx
cmp edx, eax
jb 0x47823c
ja 0x4780d2
mov ecx, dword [esp + 0x4c]
cmp ecx, dword [esp + 0x3c]
jbe 0x47823c
mov ecx, dword [esp + 0x44]
cmp ebx, eax
ja 0x478217
jb 0x4780e6
cmp edi, dword [esp + 0x3c]
jae 0x478217
mov edx, dword [esp + 0x1c]
add edx, edi
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x20]
adc edx, ebx
cmp edx, eax
jb 0x478217
ja 0x47810e
mov edx, dword [esp + 0x3c]
cmp dword [esp + 0x54], edx
jbe 0x478217
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4781cb
mov edx, dword [esp + 0x30]
mov eax, edi
sub eax, ebp
mov dword [esp + 0x34], eax
mov eax, ebx
sbb eax, edx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x4c]
sub ecx, edi
sbb eax, ebx
add ecx, ebp
adc eax, edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x7c]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004d3ea0
test eax, eax
je 0x4782f9
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, dword [esp + 0x30]
sub eax, edi
sbb ecx, ebx
add eax, ebp
adc ecx, edx
mov edx, dword [esp + 0x24]
cmp edx, eax
mov dword [esp + 0x60], ecx
jne 0x4782f9
mov edx, dword [esp + 0x28]
cmp edx, ecx
jne 0x4782f9
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx + 0x7bc]
test ecx, ecx
je 0x4781cb
mov edx, dword [esi + 8]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
je 0x4781cb
mov ecx, dword [ecx + 0x280]
test ecx, ecx
je 0x4781cb
mov edx, dword [esp + 0x60]
push 0
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push 0
push eax
push edx
call fcn.00477fe0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, edi
sub edx, eax
sbb ebx, ecx
sub edx, ebp
sbb ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x1c]
add ebp, edx
mov edx, dword [esp + 0x20]
adc edx, ebx
mov esi, eax
sub esi, edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x2c]
add esi, edx
add edi, esi
add eax, edx
adc ecx, dword [esp + 0x30]
mov dword [esp + 0x70], edi
mov dword [esp + 0x1c], ebp
mov edi, eax
mov ebx, ecx
mov dword [esp + 0x14], 1
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x20]
inc edx
cmp edx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
jb 0x478040
jmp 0x4782ed
mov eax, dword [esp + 0x7c]
test eax, eax
mov ecx, dword [esp + 0x20]
je 0x4782c1
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x74]
push ecx
sub edi, ebp
sbb ebx, edx
mov edx, dword [esp + 0x24]
push edx
push eax
push ebx
push edi
mov ecx, esi
call fcn.004d3ea0
test eax, eax
je 0x4782f9
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x1c]
jne 0x4782f9
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x20]
jne 0x4782f9
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x7bc]
test eax, eax
je 0x4782cd
mov edx, dword [esi + 8]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x4782cd
mov ecx, dword [eax + 0x280]
test ecx, ecx
je 0x4782cd
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push eax
push edx
push 0
push ebx
push edi
call fcn.00477fe0
jmp 0x4782cd
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
sub eax, esi
sbb ecx, edx
mov dword [esp + 0x14], 1
or eax, ecx
je 0x47833a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47833a
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x54
ret 0x18
cmp dword [esp + 0x7c], edx
je 0x47833a
mov ecx, dword [ecx]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x7c]
push eax
push edx
call fcn.004d3ea0
test eax, eax
je 0x4782f9
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x28]
je 0x4782f9
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push eax
push ecx
lea ecx, [ebp + 0x28]
call fcn.004a4c50
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x54
ret 0x18