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

Disassembly:
mov ecx, dword [0x5fcebc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4955ba
sub esp, 0x5c
mov ecx, dword [esp + 0x64]
nop
mov edx, dword [esp + 0x60]
test ecx, 0x80000000
je 0x49516c
shl ecx, 1
mov ebx, edx
shl edx, 1
mov ebp, ebx
shr ebx, 0x1f
or ebx, ecx
mov ecx, ebx
shl ebx, 1
shr ecx, 0x1f
shr edx, 0x1f
or ebx, edx
add ebx, 0xd7b17f80
adc ecx, 0xd
jmp 0x495176
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov ebp, edx
and ebp, 0x3fffffff
test ecx, ecx
jge 0x4951b3
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
xor esi, esi
sub esi, ebx
mov edi, 0
sbb edi, ecx
test ebp, ebp
jge 0x4951b7
lea ebp, [edx - 0x3b9aca00]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
mov esi, 0xffffffff
sub esi, ebx
mov edi, 0xffffffff
sbb edi, ecx
jmp 0x4951b7
mov edi, ecx
mov esi, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
mov edx, dword [esp + 0x78]
test edx, edx
setl bl
sete al
mov esi, dword [esp + 0x74]
cmp esi, 0x3b9aca00
xchg edi, ebx
setb bl
xchg edi, ebx
and edi, eax
or ebx, edi
test bl, bl
jne 0x4951f0
xor eax, eax
jmp 0x495234
mov dword [esp], 0x3b9aca00
mov dword [esp + 4], 0
add esi, esi
mov dword [esp + 8], esi
adc edx, edx
mov dword [esp + 0xc], edx
call fcn.00460680
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
sete al
test ecx, ecx
sete cl
and eax, ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x78]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x74]
test al, al
je 0x49526f
test esi, esi
je 0x4955b4
mov eax, ebp
cmp esi, 0xffffffff
je 0x49524c
cdq
idiv esi
jmp 0x49524e
neg eax
mov edx, eax
mov eax, ebp
mov ebx, edx
cmp esi, 0xffffffff
je 0x49525e
cdq
idiv esi
jmp 0x495260
xor edx, edx
and ebx, 1
mov ebp, edx
sar edx, 0x1f
test ecx, ecx
jmp 0x4953c9
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], 0x3b9aca00
mov dword [esp + 0xc], 0
call fcn.00460680
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
sete al
test ecx, ecx
sete cl
and eax, ecx
test al, al
jne 0x495310
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 0x4952d3
add ebp, 1
mov ecx, 0
adc ecx, 0
jmp 0x4952d5
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 edx, eax
test dl, dl
je 0x495301
add ebp, 1
adc ecx, 0
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov edi, eax
jmp 0x49541d
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x3b9aca00
mov dword [esp + 0xc], 0
call fcn.00460540
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x28]
mov dword [esp], edx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.00460540
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
call fcn.00460680
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, eax
mov eax, 0x3b9aca00
mul edx
imul ecx, ecx, 0x3b9aca00
add edx, ecx
mov ecx, dword [esp + 0x30]
mov ebx, ecx
sar ecx, 0x1f
mov ebp, dword [esp + 0x58]
and ebp, 1
add ebx, eax
adc edx, ecx
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [esp + 0x74]
mov eax, ebx
mov ebx, ebp
mov ebp, eax
jge 0x4953ee
test edx, edx
setne al
test ebp, ebp
setne cl
or eax, ecx
test al, al
je 0x4953e8
xor ebx, 1
sub esi, ebp
mov eax, dword [esp + 0x78]
sbb eax, edx
jmp 0x4953f2
mov eax, edx
mov esi, ebp
jmp 0x4953f2
mov eax, edx
mov esi, ebp
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], eax
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 0x495408
mov eax, dword [esp + 0x74]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x44], eax
jmp 0x495481
mov ecx, ebp
shr ebp, 1
shr edi, 1
shl ecx, 0x1f
mov ebx, edx
and ebx, 1
shl ebx, 0x1f
shr edx, 1
shl eax, 0x1f
or ecx, edi
or ebx, ebp
or edx, eax
mov eax, dword [esp + 0x3c]
shr eax, 1
mov edi, dword [esp + 0x78]
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x3c], eax
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x20], ecx
cmp edx, ebp
xchg edi, ebx
setb bl
xchg edi, ebx
mov eax, dword [esp + 0x3c]
cmp ecx, eax
sete al
seta cl
and edi, eax
or ecx, edi
test cl, cl
jne 0x4954da
cmp edx, ebp
sete cl
and ecx, eax
test cl, cl
je 0x495538
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 0x495528
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 edi, dword [esp + 0x24]
cmp edi, ebx
xchg edi, ebx
setb bl
xchg edi, ebx
sete al
cmp esi, ecx
seta cl
and eax, ecx
or eax, edi
test al, al
je 0x495515
add ebp, 0xffffffff
mov ecx, dword [esp + 0x20]
adc ecx, 0xffffffff
jmp 0x495519
mov ecx, dword [esp + 0x20]
sub ebp, edx
mov eax, dword [esp + 0x3c]
sbb ecx, eax
mov edi, 1
jmp 0x495542
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
xor edi, edi
jmp 0x495542
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], ebx
test edx, edx
xchg edi, ebx
sete bl
xchg edi, ebx
test eax, eax
sete cl
and edi, ecx
xchg edi, eax
test al, al
xchg edi, eax
je 0x49558e
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x44]
cmp ecx, edi
sete cl
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x48]
cmp ebx, ebp
sete bl
and ecx, ebx
test cl, cl
je 0x49543f
jmp 0x49559b
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
jmp 0x49543f
mov eax, dword [esp + 0x18]
test eax, eax
mov ebx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov ebp, esi
mov esi, dword [esp + 0x74]
jmp 0x4953c9
call fcn.004371e0
nop
call fcn.00465b40
jmp fcn.00495120