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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a4a95
sub esp, 0x5c
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
test edx, 0x80000000
je 0x4a462d
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
shr ebp, 0x1f
add ecx, 0xd7b17f80
adc ebp, 0xd
jmp 0x4a463b
mov edx, dword [esp + 0x68]
mov ebp, dword [esp + 0x6c]
mov eax, edx
mov edx, ecx
mov ecx, eax
and edx, 0x3fffffff
test ebp, ebp
jge 0x4a4670
xor ebx, ebx
sub ebx, ecx
mov esi, 0
sbb esi, ebp
mov edi, edx
neg edx
test edx, edx
jge 0x4a4674
mov ebx, 0xffffffff
sub ebx, ecx
mov esi, 0xffffffff
sbb esi, ebp
lea edx, [edi - 0x3b9aca00]
neg edx
jmp 0x4a4674
mov esi, ebp
mov ebx, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x78]
test ecx, ecx
xchg edi, ebx
setl bl
xchg edi, ebx
mov eax, ebx
sete bl
mov esi, dword [esp + 0x74]
cmp esi, 0x3b9aca00
setb cl
and ecx, ebx
or edi, ecx
xchg edi, eax
test al, al
xchg edi, eax
jne 0x4a46b1
xor ecx, ecx
jmp 0x4a46f9
add esi, esi
mov ecx, dword [esp + 0x78]
adc ecx, ecx
mov dword [esp + 4], 0
mov dword [esp], 0x3b9aca00
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
call fcn.004589f0
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 + 0x28]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x74]
test cl, cl
je 0x4a473a
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x4a4a8f
mov eax, edx
mov ebx, eax
cmp ecx, 0xffffffff
je 0x4a4717
cdq
idiv ecx
jmp 0x4a4719
neg eax
and eax, 1
mov edx, eax
mov eax, ebx
mov ebx, edx
cmp ecx, 0xffffffff
je 0x4a472c
cdq
idiv ecx
jmp 0x4a472e
xor edx, edx
mov ecx, edx
sar edx, 0x1f
test ebp, ebp
jmp 0x4a4896
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3b9aca00
call fcn.004589f0
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 0x4a47df
mov eax, 0x3b9aca00
mov ecx, dword [esp + 0x2c]
mul ecx
mov ecx, eax
mov eax, dword [esp + 0x28]
mov ebx, 0x3b9aca00
mov ebp, edx
mul ebx
add eax, 0
adc edx, ecx
cmp ecx, edx
jbe 0x4a47a2
add ebp, 1
mov ecx, 0
adc ecx, 0
jmp 0x4a47a4
xor ecx, ecx
mov ebx, dword [esp + 0x30]
mov esi, ebx
sar ebx, 0x1f
add esi, eax
adc ebx, edx
cmp ebx, edx
setb dl
xchg edi, ebx
sete bl
xchg edi, ebx
cmp esi, eax
setb al
and eax, edi
or eax, edx
test al, al
je 0x4a47d0
add ebp, 1
adc ecx, 0
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov edi, eax
jmp 0x4a48ee
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x3b9aca00
call fcn.00458870
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call fcn.00458870
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x28]
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.004589f0
mov eax, dword [esp + 0x10]
mov ecx, eax
mov eax, 0x3b9aca00
mul ecx
mov ecx, dword [esp + 0x14]
imul ecx, ecx, 0x3b9aca00
add edx, ecx
mov ecx, dword [esp + 0x30]
mov ebx, ecx
sar ecx, 0x1f
add ebx, eax
adc edx, ecx
mov eax, dword [esp + 0x50]
and eax, 1
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov esi, dword [esp + 0x74]
mov ecx, ebx
mov ebx, eax
jge 0x4a48bf
test edx, edx
setne al
test ecx, ecx
xchg ebp, ebx
setne bl
xchg ebp, ebx
or eax, ebp
test al, al
je 0x4a48b9
sub esi, ecx
mov eax, dword [esp + 0x78]
sbb eax, edx
xor ebx, 1
jmp 0x4a48c3
mov eax, edx
mov esi, ecx
jmp 0x4a48c3
mov eax, edx
mov esi, ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], esi
add esp, 0x5c
ret
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x3c]
shl eax, 1
shr edx, 0x1f
or eax, edx
mov edx, dword [esp + 0x34]
shl edx, 1
mov dword [esp + 0x3c], eax
shr eax, 0x1f
cmp eax, 1
jne 0x4a48d9
mov eax, dword [esp + 0x74]
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
jmp 0x4a495e
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 + 0x78]
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x3c], ecx
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x78]
mov edx, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x3c]
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 0x4a49b7
cmp edx, ebp
sete al
and eax, edi
test al, al
je 0x4a4a15
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x48]
cmp eax, ebx
setb cl
xchg edi, ebx
sete bl
xchg edi, ebx
mov edx, dword [esp + 0x44]
cmp edx, esi
setbe al
and eax, edi
or eax, ecx
test al, al
je 0x4a4a05
mov edx, dword [esp + 0x34]
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x44]
mov ecx, esi
sub esi, eax
mov edi, dword [esp + 0x48]
sbb ebx, edi
mov eax, dword [esp + 0x24]
cmp eax, ebx
setb al
xchg edi, ebx
sete bl
xchg edi, ebx
cmp esi, ecx
seta cl
and ecx, edi
or ecx, eax
test cl, cl
je 0x4a49f2
add ebp, 0xffffffff
mov ecx, dword [esp + 0x20]
adc ecx, 0xffffffff
jmp 0x4a49f6
mov ecx, dword [esp + 0x20]
sub ebp, edx
mov eax, dword [esp + 0x3c]
sbb ecx, eax
mov edi, 1
jmp 0x4a4a1f
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
xor edi, edi
jmp 0x4a4a1f
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x1c], ebp
test eax, eax
xchg edi, ebx
sete bl
xchg edi, ebx
test edx, edx
sete cl
and ecx, edi
test cl, cl
je 0x4a4a69
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x48]
cmp ecx, edi
sete cl
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x44]
cmp ebx, ebp
sete bl
and ebx, ecx
test bl, bl
je 0x4a4914
jmp 0x4a4a76
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
jmp 0x4a4914
mov eax, dword [esp + 0x18]
test eax, eax
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ecx, esi
mov esi, dword [esp + 0x74]
jmp 0x4a4896
call fcn.00432350
nop
call fcn.0045dbb0
jmp fcn.004a45e0