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

Disassembly:
push 0xffffffffffffffff
push 0x54af08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
mov esi, dword [esp + 0x70]
mov ecx, ebp
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
jle 0x477304
lea esp, [esp]
mov ebp, dword [edi]
lea ecx, [esp + 0x14]
call fcn.00409000
mov dword [esp + 0x6c], 0
mov ebx, 1
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x6c], ebx
mov ecx, dword [esi + 0xc]
cmp ecx, dword [esp + 0x20]
sete byte [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4771f9
push eax
call fcn.004ed9bb
add esp, 4
mov al, byte [esp + 0x74]
test al, al
jne 0x477435
mov ebp, dword [edi]
lea ecx, [esp + 0x28]
add esi, 0x14
call fcn.00409000
mov dword [esp + 0x6c], 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x6c], 5
mov edx, dword [esi + 0xc]
cmp edx, dword [esp + 0x34]
sete byte [esp + 0x74]
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x28]
test eax, eax
je 0x477250
push eax
call fcn.004ed9bb
add esp, 4
mov al, byte [esp + 0x74]
test al, al
jne 0x477435
mov ebp, dword [edi]
lea ecx, [esp + 0x3c]
add esi, 0x14
call fcn.00409000
mov dword [esp + 0x6c], 8
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x6c], 9
mov eax, dword [esi + 0xc]
cmp eax, dword [esp + 0x48]
sete bl
or ebp, 0xffffffff
mov dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4772a4
push eax
call fcn.004ed9bb
add esp, 4
test bl, bl
jne 0x477435
mov ecx, dword [edi]
push ecx
lea ecx, [esp + 0x54]
add esi, 0x14
call fcn.00477100
mov dword [esp + 0x6c], 0xc
mov ebx, dword [esp + 0x5c]
mov edx, dword [esi + 0xc]
cmp edx, ebx
sete bl
mov dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4772e4
push eax
call fcn.004ed9bb
add esp, 4
test bl, bl
jne 0x477435
mov eax, dword [esp + 0x10]
add esi, 0x14
dec eax
test eax, eax
mov dword [esp + 0x10], eax
jg 0x4771b0
mov ebp, dword [esp + 0x78]
mov ecx, ebp
sub ecx, esi
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
dec eax
je 0x4773d0
dec eax
je 0x47737f
dec eax
jne 0x477420
mov ebx, dword [edi]
lea ecx, [esp + 0x3c]
call fcn.00409000
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x6c], 0x10
mov eax, dword [esi + 0xc]
cmp eax, dword [esp + 0x48]
sete bl
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x477374
push eax
call fcn.004ed9bb
add esp, 4
test bl, bl
jne 0x477435
add esi, 0x14
mov ebx, dword [edi]
lea ecx, [esp + 0x28]
call fcn.00409000
mov dword [esp + 0x6c], 0x13
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 1
mov dword [esp + 0x6c], 0x14
mov ecx, dword [esi + 0xc]
cmp ecx, dword [esp + 0x34]
sete bl
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4773c9
push eax
call fcn.004ed9bb
add esp, 4
test bl, bl
jne 0x477435
add esi, 0x14
mov edi, dword [edi]
lea ecx, [esp + 0x14]
call fcn.00409000
mov dword [esp + 0x6c], 0x17
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x6c], 0x18
mov edx, dword [esi + 0xc]
cmp edx, dword [esp + 0x20]
sete bl
mov dword [esp + 0x6c], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47741a
push eax
call fcn.004ed9bb
add esp, 4
test bl, bl
mov eax, esi
jne 0x477422
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
mov ecx, dword [esp + 0x64]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret