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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4af29f
sub esp, 0x60
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
test edx, 0x80000000
je 0x4aee35
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 0x4aee43
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 0x4aee78
xor ebx, ebx
sub ebx, ecx
mov esi, 0
sbb esi, ebp
mov edi, edx
neg edx
test edx, edx
jge 0x4aee7c
mov ebx, 0xffffffff
sub ebx, ecx
mov esi, 0xffffffff
sbb esi, ebp
lea edx, [edi - 0x3b9aca00]
neg edx
jmp 0x4aee7c
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 0x4aeeb7
xor ecx, ecx
jmp 0x4aeeff
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.0045d9f0
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 0x4aef40
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x4af299
mov eax, edx
mov ebx, eax
cmp ecx, 0xffffffff
je 0x4aef1d
cdq
idiv ecx
jmp 0x4aef1f
neg eax
and eax, 1
mov edx, eax
mov eax, ebx
mov ebx, edx
cmp ecx, 0xffffffff
je 0x4aef32
cdq
idiv ecx
jmp 0x4aef34
xor edx, edx
mov ecx, edx
sar edx, 0x1f
test ebp, ebp
jmp 0x4af09b
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.0045d9f0
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 0x4aefe4
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 0x4aefa3
add ebp, 1
mov ecx, 0
adc ecx, 0
jmp 0x4aefa5
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 0x4aefd5
add ebp, 1
adc ecx, 0
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov edi, eax
jmp 0x4af0ee
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.0045d880
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.0045d880
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.0045d9f0
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 0x4af0c0
test edx, edx
setne al
test ecx, ecx
xchg ebp, ebx
setne bl
xchg ebp, ebx
or eax, ebp
test al, al
je 0x4af0c0
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 0x4af0d9
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 0x4af15e
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 0x4af1c1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], edx
cmp edx, ebp
sete al
and eax, edi
test al, al
je 0x4af20f
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 0x4af217
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 0x4af1fc
add ebp, 0xffffffff
mov ecx, dword [esp + 0x20]
adc ecx, 0xffffffff
jmp 0x4af200
mov ecx, dword [esp + 0x20]
sub ebp, edx
mov eax, dword [esp + 0x40]
sbb ecx, eax
mov edi, 1
jmp 0x4af229
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 0x4af273
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 0x4af114
jmp 0x4af280
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
jmp 0x4af114
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 0x4af09b
call fcn.00435d10
nop
call fcn.00461cc0
jmp fcn.004aede0