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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a69aa
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 0x4a6802
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 0x4a67f7
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 0x4a67dd
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 0x4a67b1
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 0x4a67c3
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 0x4a6776
mov edx, ebp
shr ebp, 0x1f
shl ebp, 0x1f
test ebp, ebp
je 0x4a699b
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 0x4a6989
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.004514ae
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.004a6480
lea esi, [esp + 0x1c]
mov edi, esp
call fcn.004514ae
lea edi, [esp + 0x14]
mov dword [esp + 0x58], edi
lea esi, [esp + 0x60]
call fcn.004514ae
call fcn.004a5440
movzx ecx, byte [esp + 0x28]
test cl, cl
jne 0x4a696f
mov edi, esp
lea esi, [esp + 0x60]
call fcn.004514ae
mov edi, dword [esp + 0x58]
lea esi, [esp + 0x74]
call fcn.004514ae
call fcn.004a5230
movzx eax, byte [esp + 0x28]
test al, al
je 0x4a6955
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 0x4a6875
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov edx, ecx
jmp 0x4a683c
call fcn.0044f4e0
jmp fcn.004a66d0