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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4189d6
sub esp, 0x70
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x18]
mov edx, dword fs:[0x14]
mov edx, dword [edx]
cmp dword [ecx], edx
je 0x4189d2
mov ecx, dword [edx + 0x18]
mov edx, dword [ecx + 0x78]
test edx, edx
jle 0x418583
add esp, 0x70
ret
mov ecx, dword [ecx + 0x74]
test ecx, ecx
jne 0x41857f
xor ecx, ecx
jmp 0x418593
movzx ecx, byte [esp + 0x17]
mov byte [esp + 0x17], cl
lea eax, [0xf2c400]
mov dword [esp], eax
call fcn.004021a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
movsd xmm0, qword [esp + 0x48]
movsd qword [esp + 0x50], xmm0
lea eax, [0xf2c408]
mov dword [esp], eax
call fcn.004021a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0xd0]
xor edx, edx
sub edx, ecx
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 0xd4]
mov ebx, 0
sbb ebx, ecx
mov dword [esp + 0x34], ebx
movsd xmm0, qword [esp + 0x40]
movsd qword [esp + 0x58], xmm0
mov dword [esp + 4], ebx
mov dword [esp], edx
call fcn.00451050
movsd xmm0, qword [esp + 0x50]
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.00450fb0
mov eax, dword [esp + 0xc]
test eax, eax
sete al
setl cl
mov edx, dword [esp + 8]
cmp edx, 0x10000
setb bl
and ebx, eax
or ebx, ecx
mov eax, dword [esp + 0xc]
test bl, bl
jne 0x418990
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
lea ebp, [0xf2c3c8]
mov dword [esp], ebp
call fcn.00402040
mov eax, dword [esp + 4]
test eax, eax
seta cl
mov edx, dword [esp + 8]
test edx, edx
sete bl
xchg ebp, ebx
setg bl
xchg ebp, ebx
and ebx, ecx
or ebp, ebx
mov ecx, dword [esp + 8]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x418817
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
movzx edx, byte [0xf180c8]
test dl, dl
je 0x41880d
movzx edx, byte [esp + 0x17]
test dl, dl
je 0x4187ca
mov byte [esp + 0x17], dl
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
lea ebx, [0x4527d0]
mov dword [esp + 0x60], ebx
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x60]
mov dword [esp], eax
call fcn.004569d0
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x44]
mov edx, dword [0xf2bef0]
test edx, edx
jne 0x4187b7
mov dword [eax + 0x44], 0
test ecx, ecx
jne 0x4187ac
mov ecx, dword [eax + 0xd4]
test ecx, ecx
jge 0x418774
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x418763
nop
lea eax, [0x4ae3f4]
mov dword [esp], eax
call fcn.00456970
movzx ecx, byte [esp + 0x17]
jmp 0x418593
call fcn.00418e50
movzx eax, byte [esp]
test al, al
je 0x41858e
movzx eax, byte [esp + 0x17]
test al, al
jne 0x418781
add esp, 0x70
ret
mov byte [esp], 0x2c
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00449f20
jmp 0x41877d
call fcn.00415160
mov eax, dword [esp + 0x74]
jmp 0x418738
lea edi, [eax + 0x44]
mov edx, eax
xor eax, eax
call fcn.00458050
mov eax, edx
jmp 0x418734
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov byte [esp], 0x2b
mov dword [esp + 4], 1
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00449f20
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, 1
jmp 0x4186ce
movzx edx, byte [esp + 0x17]
jmp 0x4186ce
mov ebx, dword [esp + 0x24]
cmp ebx, edx
xchg ebp, ebx
setg bl
xchg ebp, ebx
mov esi, dword [esp + 0x1c]
cmp esi, eax
xchg edi, ebx
seta bl
xchg edi, ebx
cmp ebx, edx
sete dl
and edx, edi
or ebp, edx
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x418906
mov edx, dword [esp + 0x74]
mov ebp, dword [edx + 0xd0]
mov edi, dword [esp + 0x30]
add ebp, edi
mov edi, dword [edx + 0xd4]
mov dword [edx + 0xd0], ebp
mov ebp, dword [esp + 0x34]
adc edi, ebp
mov dword [edx + 0xd4], edi
mov eax, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
xor ecx, ecx
sub ecx, esi
sub eax, esi
mov dword [esp + 0x28], eax
lea ebp, [0xf2c3c8]
mov dword [esp], ebp
xor ebp, ebp
sub ebp, esi
mov ebp, 0
sbb ebp, ebx
mov dword [esp + 8], ebp
mov dword [esp + 4], ecx
call fcn.00402050
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
sbb eax, ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
sete dl
test eax, eax
sete bl
and ebx, edx
test bl, bl
je 0x4186b2
movzx eax, byte [esp + 0x17]
test al, al
jne 0x4188da
add esp, 0x70
ret
nop
mov byte [esp], 0x2c
mov dword [esp + 4], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00449f20
jmp 0x4188d6
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x74]
mov ebx, dword [edx + 0xd0]
mov dword [esp + 0x3c], ebx
mov ebp, dword [edx + 0xd4]
mov dword [esp + 0x38], ebp
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00451050
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x58]
mulsd xmm0, xmm1
movsd qword [esp], xmm0
call fcn.00450fb0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
mov edx, eax
add eax, ecx
mov ebx, eax
add eax, 1
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x74]
mov dword [esi + 0xd0], eax
add edx, ecx
mov eax, dword [esp + 0x38]
adc ebp, eax
add ebx, 1
adc ebp, 0
mov dword [esi + 0xd4], ebp
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
jmp 0x41886e
mov dword [esp + 4], 0
mov dword [esp], 0x10000
call fcn.00451050
movsd xmm0, qword [esp + 8]
movsd xmm1, qword [esp + 0x58]
mulsd xmm0, xmm1
movsd qword [esp], xmm0
call fcn.00450fb0
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
xor eax, eax
mov edx, 0x10000
jmp 0x418661
add esp, 0x70
ret
call fcn.00456af0
jmp fcn.00418540