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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x514815
sub esp, 0x5c
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
test edx, 0x80000000
je 0x5143ad
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 0x5143bb
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 0x5143f0
xor ebx, ebx
sub ebx, ecx
mov esi, 0
sbb esi, ebp
mov edi, edx
neg edx
test edx, edx
jge 0x5143f4
mov ebx, 0xffffffff
sub ebx, ecx
mov esi, 0xffffffff
sbb esi, ebp
lea edx, [edi - 0x3b9aca00]
neg edx
jmp 0x5143f4
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 0x514431
xor ecx, ecx
jmp 0x514479
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.0045d830
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 0x5144ba
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x51480f
mov eax, edx
mov ebx, eax
cmp ecx, 0xffffffff
je 0x514497
cdq
idiv ecx
jmp 0x514499
neg eax
and eax, 1
mov edx, eax
mov eax, ebx
mov ebx, edx
cmp ecx, 0xffffffff
je 0x5144ac
cdq
idiv ecx
jmp 0x5144ae
xor edx, edx
mov ecx, edx
sar edx, 0x1f
test ebp, ebp
jmp 0x514616
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.0045d830
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 0x51455f
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 0x514522
add ebp, 1
mov ecx, 0
adc ecx, 0
jmp 0x514524
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 0x514550
add ebp, 1
adc ecx, 0
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov edi, eax
jmp 0x51466e
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.0045d6b0
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.0045d6b0
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.0045d830
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 0x51463f
test edx, edx
setne al
test ecx, ecx
xchg ebp, ebx
setne bl
xchg ebp, ebx
or eax, ebp
test al, al
je 0x514639
sub esi, ecx
mov eax, dword [esp + 0x78]
sbb eax, edx
xor ebx, 1
jmp 0x514643
mov eax, edx
mov esi, ecx
jmp 0x514643
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 0x514659
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 0x5146de
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 0x514737
cmp edx, ebp
sete al
and eax, edi
test al, al
je 0x514795
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 0x514785
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 0x514772
add ebp, 0xffffffff
mov ecx, dword [esp + 0x20]
adc ecx, 0xffffffff
jmp 0x514776
mov ecx, dword [esp + 0x20]
sub ebp, edx
mov eax, dword [esp + 0x3c]
sbb ecx, eax
mov edi, 1
jmp 0x51479f
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
xor edi, edi
jmp 0x51479f
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 0x5147e9
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 0x514694
jmp 0x5147f6
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
jmp 0x514694
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 0x514616
call fcn.004351c0
nop
call fcn.00462ed0
jmp fcn.00514360