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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x477caa
sub esp, 0x5c
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x78]
mov ebp, edx
and edx, ebx
mov eax, ebx
mov ebx, dword [esp + 0x74]
shr edx, 0x1f
shl edx, 0x1f
test edx, edx
je 0x477b02
mov eax, dword [esp + 0x68]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x3c], ecx
mov edx, eax
sub eax, ecx
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x80]
mov dword [esp + 0x40], ebp
mov esi, ebx
sbb ebx, ebp
test ebx, ebx
xchg edi, ebx
setl bl
xchg edi, ebx
sete cl
test eax, eax
setb al
and eax, ecx
or edi, eax
xchg edi, eax
test al, al
xchg edi, eax
je 0x477af7
cmp esi, ebp
setg al
xchg edi, ebx
sete bl
xchg edi, ebx
mov ebp, dword [esp + 0x3c]
cmp edx, ebp
seta dl
and edx, edi
or edx, eax
test dl, dl
jne 0x477add
test ebx, ebx
setg al
mov edx, dword [esp + 0x48]
test edx, edx
xchg edi, ebx
seta bl
xchg edi, ebx
and edi, ecx
or edi, eax
xchg edi, eax
test al, al
xchg edi, eax
je 0x477ab1
mov eax, dword [esp + 0x40]
cmp esi, eax
setl al
sete cl
mov esi, dword [esp + 0x44]
cmp esi, ebp
xchg ebp, ebx
setb bl
xchg ebp, ebx
and ebp, ecx
or eax, ebp
test al, al
jne 0x477ac3
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ebx
add esp, 0x5c
ret
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0x80000000
add esp, 0x5c
ret
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x8c], 0x7fffffff
add esp, 0x5c
ret
test ebx, ebx
mov ebp, dword [esp + 0x3c]
jmp 0x477a76
mov edx, ebp
shr ebp, 0x1f
shl ebp, 0x1f
test ebp, ebp
je 0x477c9b
shl edx, 1
mov ebp, ecx
shr ecx, 0x1f
or ecx, edx
mov edx, ebp
shl ebp, 1
shr ebp, 0x1f
mov esi, ecx
shl ecx, 1
or ebp, ecx
mov ecx, ebp
add ebp, 0xd7b17f80
shr esi, 0x1f
add ecx, 0xd7b17f80
adc esi, 0xd
mov ecx, eax
shr eax, 0x1f
shl eax, 0x1f
test eax, eax
je 0x477c89
shl ecx, 1
mov eax, ebx
shr ebx, 0x1f
or ebx, ecx
mov ecx, eax
shl eax, 1
shr eax, 0x1f
mov edi, ebx
shl ebx, 1
or eax, ebx
mov ebx, eax
add eax, 0xd7b17f80
shr edi, 0x1f
add ebx, 0xd7b17f80
adc edi, 0xd
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], eax
sub ebp, eax
mov eax, ebp
mov ebx, 0x3b9aca00
mov ebp, edx
mul ebx
mov dword [esp + 0x54], eax
and ebp, 0x3fffffff
and ecx, 0x3fffffff
sub ebp, ecx
add eax, ebp
mov dword [esp + 0x4c], eax
mov ebx, edi
mov edi, esp
lea esi, [esp + 0x74]
call fcn.00450a4e
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x34]
mov esi, ebp
mov ebp, dword [esp + 0x30]
sub ecx, ebp
mov ecx, dword [esp + 0x38]
sbb ecx, ebx
imul ecx, ecx, 0x3b9aca00
add ecx, edx
mov edx, esi
sar esi, 0x1f
mov ebx, dword [esp + 0x54]
add ebx, edx
adc ecx, esi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x18], ecx
call fcn.00477780
lea esi, [esp + 0x1c]
mov edi, esp
call fcn.00450a4e
lea edi, [esp + 0x14]
mov dword [esp + 0x58], edi
lea esi, [esp + 0x60]
call fcn.00450a4e
call fcn.00476930
movzx ecx, byte [esp + 0x28]
test cl, cl
jne 0x477c6f
mov edi, esp
lea esi, [esp + 0x60]
call fcn.00450a4e
mov edi, dword [esp + 0x58]
lea esi, [esp + 0x74]
call fcn.00450a4e
call fcn.00476720
movzx eax, byte [esp + 0x28]
test al, al
je 0x477c55
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0x80000000
add esp, 0x5c
ret
mov dword [esp + 0x88], 0xffffffff
mov dword [esp + 0x8c], 0x7fffffff
add esp, 0x5c
ret
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x8c], eax
add esp, 0x5c
ret
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x80]
mov ecx, ebx
jmp 0x477b75
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov edx, ecx
jmp 0x477b3c
call fcn.0044eaa0
jmp fcn.004779d0