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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a93af
sub esp, 0x60
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
test edx, 0x80000000
je 0x4a8f45
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 0x4a8f53
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 0x4a8f88
xor ebx, ebx
sub ebx, ecx
mov esi, 0
sbb esi, ebp
mov edi, edx
neg edx
test edx, edx
jge 0x4a8f8c
mov ebx, 0xffffffff
sub ebx, ecx
mov esi, 0xffffffff
sbb esi, ebp
lea edx, [edi - 0x3b9aca00]
neg edx
jmp 0x4a8f8c
mov esi, ebp
mov ebx, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], esi
mov ecx, dword [esp + 0x7c]
test ecx, ecx
xchg edi, ebx
setl bl
xchg edi, ebx
mov eax, ebx
sete bl
mov esi, dword [esp + 0x78]
cmp esi, 0x3b9aca00
setb cl
and ecx, ebx
or ecx, edi
test cl, cl
jne 0x4a8fc7
xor ecx, ecx
jmp 0x4a900f
add esi, esi
mov dword [esp + 4], 0
mov dword [esp], 0x3b9aca00
mov ecx, dword [esp + 0x7c]
adc ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
call fcn.0045da40
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 esi, dword [esp + 0x78]
test cl, cl
je 0x4a9050
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x4a93a9
mov eax, edx
mov ebx, eax
cmp ecx, 0xffffffff
je 0x4a902d
cdq
idiv ecx
jmp 0x4a902f
neg eax
and eax, 1
mov edx, eax
mov eax, ebx
mov ebx, edx
cmp ecx, 0xffffffff
je 0x4a9042
cdq
idiv ecx
jmp 0x4a9044
xor edx, edx
mov ecx, edx
sar edx, 0x1f
test ebp, ebp
jmp 0x4a91ab
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3b9aca00
call fcn.0045da40
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 0x4a90f4
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 0x4a90b3
add ebp, 1
mov ecx, 0
adc ecx, 0
jmp 0x4a90b5
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 0x4a90e5
add ebp, 1
adc ecx, 0
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov edi, eax
jmp 0x4a91fe
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.0045d8d0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x2c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call fcn.0045d8d0
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 + 0x44]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
call fcn.0045da40
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, dword [esp + 0x78]
mov ebx, eax
jge 0x4a91d0
test edx, edx
setne al
test ecx, ecx
xchg ebp, ebx
setne bl
xchg ebp, ebx
or eax, ebp
test al, al
je 0x4a91d0
sub esi, ecx
mov eax, dword [esp + 0x7c]
sbb eax, edx
xor ebx, 1
mov edx, eax
mov ecx, esi
mov dword [esp + 0x80], ebx
mov dword [esp + 0x88], edx
mov dword [esp + 0x84], ecx
add esp, 0x60
ret
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x40]
shl eax, 1
shr edx, 0x1f
or eax, edx
mov edx, dword [esp + 0x38]
shl edx, 1
mov dword [esp + 0x40], eax
shr eax, 0x1f
cmp eax, 1
jne 0x4a91e9
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 0x4a926e
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 + 0x40], 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 + 0x40]
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 0x4a92d1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], edx
cmp edx, ebp
sete al
and eax, edi
test al, al
je 0x4a931f
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 0x4a9327
mov edx, dword [esp + 0x38]
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 0x4a930c
add ebp, 0xffffffff
mov ecx, dword [esp + 0x20]
adc ecx, 0xffffffff
jmp 0x4a9310
mov ecx, dword [esp + 0x20]
sub ebp, edx
mov eax, dword [esp + 0x40]
sbb ecx, eax
mov edi, 1
jmp 0x4a9339
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x38]
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 0x4a9383
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 0x4a9224
jmp 0x4a9390
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
jmp 0x4a9224
mov eax, dword [esp + 0x18]
test eax, eax
mov ebx, dword [esp + 0x54]
mov edx, esi
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x78]
jmp 0x4a91ab
call fcn.00435db0
nop
call fcn.004618d0
jmp fcn.004a8ef0