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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x409693
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov al, byte [edi + 0x108]
mov dword [esp + 0x14], esi
cmp al, bl
je 0x401851
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ebp, [edi + 0x40]
mov ecx, ebp
call fcn.00403d40
fmul qword [0x40a580]
mov ecx, ebp
fstp qword [edi + 0x100]
call fcn.00403d10
mov eax, dword [edi + 0x100]
mov ecx, dword [edi + 0x104]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
fld qword [esp + 0x34]
fcomp qword [0x40a578]
fnstsw ax
test ah, 0x41
jne 0x401ca4
mov ebp, 0x40a538
lea esi, [edi + 0xa0]
mov dword [esp + 0x68], 0xb851eb85
mov dword [esp + 0x6c], 0x3fef851e
mov dword [esp + 0x70], 0xb851eb85
mov dword [esp + 0x74], 0x3fef851e
mov dword [esp + 0x60], ebp
fld qword [esp + 0x34]
fcomp qword [0x40a570]
fnstsw ax
test ah, 0x41
jne 0x4018df
fld qword [0x40a568]
jmp 0x4018e9
fld qword [esp + 0x34]
fmul qword [0x40a560]
fst qword [esp + 0x80]
fstp qword [esp + 0x88]
mov dword [esp + 0x78], ebp
mov edx, dword [edi + 0x98]
mov eax, dword [edi + 0x9c]
mov ecx, edi
mov dword [esp + 0xc8], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
call fcn.004026c0
fld qword [esp + 0x4c]
mov ebx, eax
call fcn.00404358
cmp eax, ebx
jge 0x401962
lea ecx, [esp + 0x78]
lea edx, [esp + 0x90]
push ecx
push edx
lea ecx, [edi + 0x70]
call fcn.00402500
fld qword [esp + 0x98]
fadd qword [esi + 8]
mov dword [esp + 0x90], ebp
fstp qword [esi + 8]
fld qword [esp + 0xa0]
fadd qword [esi + 0x10]
fstp qword [esi + 0x10]
fld qword [esi + 8]
fmul qword [0x40a558]
lea eax, [esp + 0x78]
lea ecx, [esp + 0xa8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0xd0], 1
fstp qword [esi + 8]
fld qword [esi + 0x10]
fmul qword [0x40a558]
fstp qword [esi + 0x10]
call fcn.00402500
lea ecx, [edi + 0x88]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, eax
mov byte [esp + 0xd0], 2
call fcn.004024a0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], ecx
mov ecx, edi
mov byte [esp + 0xc8], 4
mov dword [esp + 0xa8], ebp
mov dword [esp + 0x54], eax
call fcn.004026c0
fld qword [esp + 0x54]
mov ebx, eax
call fcn.00404358
cmp eax, ebx
jg 0x401b56
fld qword [esp + 0x2c]
call fcn.00404358
test eax, eax
jl 0x401bbb
fld qword [esp + 0x24]
call fcn.00404358
test eax, eax
jl 0x401c1d
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 8]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ecx
call fcn.004015f0
fld qword [esp + 0x3c]
mov ebx, eax
call fcn.00404358
add eax, dword [esp + 0x18]
cmp eax, ebx
jg 0x401c4c
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
call fcn.004026c0
sub eax, 5
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fcomp qword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x401ad3
fld qword [esi + 0x10]
fcomp qword [0x40a550]
fnstsw ax
test ah, 1
je 0x401aa9
fld qword [esi + 0x10]
fcomp qword [0x40a548]
fnstsw ax
test ah, 0x41
jne 0x401aa9
xor ebx, ebx
mov ecx, edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.004026c0
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp qword [esp + 0x2c]
jmp 0x401aab
xor ebx, ebx
fld qword [esi + 8]
fcomp qword [0x40a550]
fnstsw ax
test ah, 1
je 0x401ad5
fld qword [esi + 8]
fcomp qword [0x40a548]
fnstsw ax
test ah, 0x41
jne 0x401ad5
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
jmp 0x401ad5
xor ebx, ebx
cmp byte [0x40d824], bl
je 0x401ae9
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00402720
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
mov ecx, edi
mov dword [eax], ebp
call fcn.00401cc0
fld qword [esp + 0x34]
fsub qword [0x40a570]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0xc8], 0xffffffff
mov dword [esp + 0x78], ebp
fst qword [esp + 0x34]
fcomp qword [0x40a578]
fnstsw ax
test ah, 0x41
je 0x4018c6
mov esi, dword [esp + 0x14]
jmp 0x401ca4
fld qword [esi + 0x10]
fmul qword [0x40a540]
mov ecx, edi
fstp qword [esi + 0x10]
call fcn.004026c0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
sub esp, 0x18
fild dword [esp + 0x2c]
mov eax, esp
mov dword [esp + 0x2c], esp
fstp qword [esp + 0x44]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
mov ecx, edi
mov dword [eax], ebp
call fcn.00401cc0
mov edx, dword [edi + 0x1c]
push edx
push 0x6d
call fcn.00403bd0
add esp, 8
mov esi, 1
jmp 0x401ca4
fld qword [esi + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
fmul qword [0x40a540]
sub esp, 0x18
mov dword [esp + 0x44], 0
mov eax, esp
mov dword [esp + 0x48], 0
mov dword [esp + 0x2c], esp
fstp qword [esi + 0x10]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [eax + 0x10], ecx
mov ecx, edi
mov dword [eax + 0x14], edx
mov dword [eax], ebp
call fcn.00401cc0
mov eax, dword [edi + 0x1c]
push eax
push 0x6d
call fcn.00403bd0
add esp, 8
mov esi, 3
jmp 0x401ca4
fld qword [esi + 8]
fmul qword [0x40a540]
sub esp, 0x18
xor ecx, ecx
mov eax, esp
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], esp
fstp qword [esi + 8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
jmp 0x401c7a
fld qword [esi + 8]
fmul qword [0x40a540]
fstp qword [esi + 8]
mov esi, dword [edi + 8]
call fcn.004015f0
sub eax, esi
sub esp, 0x18
mov dword [esp + 0x2c], eax
mov eax, esp
fild dword [esp + 0x2c]
fst qword [esp + 0x3c]
fstp qword [eax + 8]
mov dword [esp + 0x2c], esp
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov ecx, edi
mov dword [eax], ebp
call fcn.00401cc0
mov eax, dword [edi + 0x1c]
push eax
push 0x6e
call fcn.00403bd0
add esp, 8
mov esi, 2
mov ecx, dword [esp + 0xc0]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret