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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a1a6d
sub esp, 0x60
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
test edx, 0x80000000
je 0x4a1605
shl edx, 1
mov ebx, ecx
shr ecx, 0x1f
or ecx, edx
mov edx, ebx
shl ebx, 1
mov ebp, ecx
shl ecx, 1
shr ebx, 0x1f
or ecx, ebx
mov ebx, ecx
add ecx, 0xd7b17f80
shr ebp, 0x1f
add ebx, 0xd7b17f80
adc ebp, 0xd
jmp 0x4a1613
mov edx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x70]
mov eax, edx
mov edx, ecx
mov ecx, eax
and edx, 0x3fffffff
test ebp, ebp
jge 0x4a163c
xor ebx, ebx
sub ebx, ecx
mov ecx, 0
sbb ecx, ebp
neg edx
test edx, edx
jge 0x4a1640
add ebx, 0xffffffff
adc ecx, 0xffffffff
add edx, 0x3b9aca00
jmp 0x4a1640
mov ebx, ecx
mov ecx, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ecx
mov esi, dword [esp + 0x7c]
test esi, esi
xchg edi, ebx
setl bl
xchg edi, ebx
mov eax, ebx
sete bl
mov ecx, dword [esp + 0x78]
cmp ecx, 0x3b9aca00
xchg esi, ebx
setb bl
xchg esi, ebx
and esi, ebx
or esi, edi
xchg esi, eax
test al, al
xchg esi, eax
jne 0x4a1681
xor ebx, ebx
jmp 0x4a16cb
add ecx, ecx
mov dword [esp + 4], 0
mov dword [esp], 0x3b9aca00
mov edx, dword [esp + 0x7c]
adc edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
call fcn.00458600
mov eax, dword [esp + 0x14]
test eax, eax
sete al
mov ecx, dword [esp + 0x10]
test ecx, ecx
sete cl
and ecx, eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
mov ebx, ecx
mov ecx, dword [esp + 0x78]
test bl, bl
je 0x4a170c
mov ebx, dword [esp + 0x78]
test ebx, ebx
je 0x4a1a67
mov eax, edx
mov esi, eax
cmp ebx, 0xffffffff
je 0x4a16e9
cdq
idiv ebx
jmp 0x4a16eb
neg eax
and eax, 1
mov edx, eax
mov eax, esi
mov esi, edx
cmp ebx, 0xffffffff
je 0x4a16fe
cdq
idiv ebx
jmp 0x4a1700
xor edx, edx
mov ebx, edx
sar edx, 0x1f
test ebp, ebp
jmp 0x4a1869
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3b9aca00
call fcn.00458600
mov eax, dword [esp + 0x14]
test eax, eax
sete al
mov ecx, dword [esp + 0x10]
test ecx, ecx
sete cl
and ecx, eax
test cl, cl
jne 0x4a17b0
mov eax, dword [esp + 0x30]
mov ecx, 0x3b9aca00
mul ecx
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov ebp, edx
mul ecx
add eax, 0
adc edx, ebx
cmp ebx, edx
jbe 0x4a176f
add ebp, 1
mov ecx, 0
adc ecx, 0
jmp 0x4a1771
xor ecx, ecx
mov ebx, dword [esp + 0x34]
mov esi, ebx
add ebx, eax
mov edi, esi
sar esi, 0x1f
add edi, eax
adc esi, edx
cmp esi, edx
setb dl
xchg edi, ebx
sete bl
xchg edi, ebx
cmp ebx, eax
setb al
and eax, edi
or eax, edx
test al, al
je 0x4a17a1
add ebp, 1
adc ecx, 0
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov edi, eax
jmp 0x4a18bc
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3b9aca00
call fcn.00458480
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x2c]
mov dword [esp], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00458480
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], ecx
call fcn.00458600
mov eax, dword [esp + 0x10]
mov ecx, 0x3b9aca00
mul ecx
mov ecx, dword [esp + 0x34]
mov ebx, ecx
add ecx, eax
mov ebp, dword [esp + 0x14]
imul ebp, ebp, 0x3b9aca00
add edx, ebp
mov ebp, ebx
sar ebx, 0x1f
add ebp, eax
adc edx, ebx
mov eax, dword [esp + 0x54]
and eax, 1
mov ebx, dword [esp + 0x18]
test ebx, ebx
mov esi, eax
mov ebx, ecx
mov ecx, dword [esp + 0x78]
jge 0x4a188e
test edx, edx
setne al
test ebx, ebx
xchg ebp, ebx
setne bl
xchg ebp, ebx
or eax, ebp
test al, al
je 0x4a188e
sub ecx, ebx
mov eax, dword [esp + 0x7c]
sbb eax, edx
xor esi, 1
mov edx, eax
mov ebx, ecx
mov dword [esp + 0x80], esi
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], ebx
add esp, 0x60
ret
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x44]
shl eax, 1
shr edx, 0x1f
or eax, edx
mov edx, dword [esp + 0x3c]
shl edx, 1
mov dword [esp + 0x44], eax
shr eax, 0x1f
cmp eax, 1
jne 0x4a18a7
mov eax, dword [esp + 0x78]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
jmp 0x4a192c
shr ebp, 1
mov ecx, edi
shl edi, 0x1f
or edi, ebp
shr ecx, 1
mov ebx, edx
and edx, 1
shl edx, 0x1f
or edx, ecx
shr ebx, 1
mov ecx, eax
shl eax, 0x1f
or eax, ebx
shr ecx, 1
mov ebx, dword [esp + 0x7c]
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x44], ecx
mov ebp, dword [esp + 0x50]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x7c]
mov edx, eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x44]
cmp eax, ecx
xchg edi, ebx
sete bl
xchg edi, ebx
setb al
cmp edx, ebp
setb cl
and ecx, edi
or ecx, eax
test cl, cl
jne 0x4a198f
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x3c], edx
cmp edx, ebp
sete al
and eax, edi
test al, al
je 0x4a19dd
mov eax, dword [esp + 0x4c]
cmp eax, esi
setb cl
xchg edi, ebx
sete bl
xchg edi, ebx
mov edx, dword [esp + 0x48]
cmp edx, ebx
xchg ebp, ebx
setbe bl
xchg ebp, ebx
and ebp, edi
or ebp, ecx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x4a19e5
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x48]
mov ecx, ebx
sub ebx, eax
mov edi, dword [esp + 0x4c]
sbb esi, edi
mov eax, dword [esp + 0x28]
cmp eax, esi
setb al
xchg edi, ebx
sete bl
xchg edi, ebx
cmp ebx, ecx
seta cl
and ecx, edi
or ecx, eax
test cl, cl
je 0x4a19ca
add ebp, 0xffffffff
mov ecx, dword [esp + 0x20]
adc ecx, 0xffffffff
jmp 0x4a19ce
mov ecx, dword [esp + 0x20]
sub ebp, edx
mov eax, dword [esp + 0x44]
sbb ecx, eax
mov edi, 1
jmp 0x4a19f7
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x24], ebx
test eax, eax
xchg edi, ebx
sete bl
xchg edi, ebx
test edx, edx
sete cl
and ecx, edi
test cl, cl
je 0x4a1a41
mov ecx, dword [esp + 0x7c]
mov edi, dword [esp + 0x4c]
cmp ecx, edi
sete cl
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x48]
cmp ebx, ebp
sete bl
and ebx, ecx
test bl, bl
je 0x4a18e2
jmp 0x4a1a4e
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
jmp 0x4a18e2
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [esp + 0x78]
mov edx, esi
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x54]
jmp 0x4a1869
call fcn.004317b0
nop
call fcn.0045d190
jmp fcn.004a15b0