Function at 0x40e050
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1488
call fcn.00412d30
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x4930b8]
mov ecx, dword [ebx + 0x4930bc]
mov edx, dword [eax + 0xb8]
mov eax, dword [eax + 0xbc]
push ebp
push esi
mov esi, dword [ecx + 0xb8]
mov ecx, dword [ecx + 0xbc]
cmp eax, ecx
push edi
lea edi, [ebx + 0x489ff0]
mov dword [esp + 0x5c], edi
jg 0x40e0b2
jl 0x40e09e
cmp edx, esi
jae 0x40e0b2
mov ebp, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ecx
jmp 0x40e0ce
mov dword [esp + 0x20], edx
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
mov eax, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov edx, esi
cmp edx, ebp
jne 0x40e0da
cmp eax, ecx
je 0x40e563
sub ebp, edx
sbb ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ebp
fild qword [esp + 0x30]
push 0xcc
mov dword [esp + 0x40], 0
fstp qword [esp + 0x54]
call fcn.004060c0
mov edx, dword [ebx + 0x48b008]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 4
push eax
push 2
push 0x400
push edx
call esi
mov ecx, dword [ebx + 0x4930b4]
lea ebp, [ebx + 0x4930b0]
push ebp
push 0
push 0
push 1
push edi
call fcn.00401630
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x40], eax
jne 0x40e176
mov eax, dword [ebx + 0x48b008]
push 0x64
push 1
push 0x400
push eax
call esi
mov dword [ebx + 0x48b008], 0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebx + 0x4930b4]
mov edx, dword [ecx + 0x2c]
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x498]
xor esi, esi
test edx, edx
mov dword [esp + 0x2c], edx
rep stosd dword es:[edi], eax
jle 0x40e1e6
jmp 0x40e1c0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x4930b4]
push esi
push edx
push eax
call fcn.004014c0
fstp dword [esp + esi*4 + 0x498]
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x40e1c0
fld qword [0x428210]
mov ecx, dword [ebx + 0x4930b4]
mov edx, dword [esp + 0x24]
fstp qword [esp + 0x60]
fld dword [ecx + 0x1b00]
xor eax, eax
mov ecx, 0x100
fstp qword [esp + 0x68]
fld qword [0x428210]
lea edi, [esp + 0x898]
rep stosd dword es:[edi], eax
fstp qword [esp + 0x30]
fld dword [ebp]
fstp qword [esp + 0x70]
mov ecx, 0x100
lea edi, [esp + 0x1098]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0xc98]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
cmp eax, edx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jg 0x40e518
jl 0x40e265
cmp ecx, dword [esp + 0x20]
jae 0x40e518
fld qword [0x428428]
fdiv qword [esp + 0x50]
fstp qword [esp + 0x88]
fld qword [0x428428]
fdiv qword [esp + 0x68]
fstp qword [esp + 0x78]
fld qword [0x428428]
fdiv qword [esp + 0x70]
fstp qword [esp + 0x90]
jmp 0x40e2a0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
nop
mov edx, dword [esp + 0x18]
sub edx, ecx
mov ecx, dword [esp + 0x1c]
sbb ecx, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
fild qword [esp + 0x50]
fmul qword [esp + 0x88]
fmul qword [0x4276c0]
call fcn.00412e7c
mov esi, eax
cmp esi, dword [esp + 0x3c]
je 0x40e2eb
mov edx, dword [ebx + 0x48b008]
push esi
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x2c]
xor ebp, ebp
xor edi, edi
xor esi, esi
cmp eax, ebp
jle 0x40e483
lea eax, [ebx + 0x48a7f0]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
cmp dword [ecx], ebp
jne 0x40e31f
mov edx, dword [ebx + 0x4930b4]
cmp dword [edx + 0x30], 1
je 0x40e46b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push eax
push ecx
mov ecx, dword [ebx + 0x4930b4]
call fcn.004014c0
fld dword [esp + esi*4 + 0xc98]
fld st(0)
fmulp st(1)
fld st(1)
fmul st(2)
fld st(2)
fcomp dword [0x4274dc]
fnstsw ax
test ah, 0x41
jne 0x40e35a
mov edx, 1
jmp 0x40e370
fld st(2)
fcomp dword [0x4274dc]
fnstsw ax
test ah, 5
jp 0x40e36e
or edx, 0xffffffff
jmp 0x40e370
xor edx, edx
cmp edx, dword [esp + esi*4 + 0x1098]
jle 0x40e42d
cmp edx, ebp
jle 0x40e42d
mov ecx, dword [esp + esi*4 + 0x898]
mov dword [esp + 0x4c], ecx
fild dword [esp + 0x4c]
fld qword [esp + 0x68]
fmul qword [0x4284e0]
fld qword [esp + 0x70]
fmul qword [0x4284d8]
fdivp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x40e42d
cmp ecx, ebp
fld dword [esp + esi*4 + 0xc98]
fabs
fld st(3)
fabs
fst dword [esp + 0x48]
fadd st(1)
fld dword [0x4281e4]
fdiv st(1)
fstp dword [esp + 0x44]
fstp st(0)
fld st(2)
fmul dword [0x4284d0]
fmulp st(1)
fmul dword [esp + 0x44]
fadd dword [esp + esi*4 + 0x98]
fst dword [esp + 0x38]
fstp dword [esp + esi*4 + 0x98]
jle 0x40e404
fild dword [esp + 0x4c]
fdivr dword [esp + 0x38]
fsqrt
jmp 0x40e408
fld dword [esp + 0x38]
fstp dword [esp + edi*4 + 0x498]
mov dword [esp + esi*4 + 0x898], ebp
fld dword [0x4284d0]
fmul st(1)
fmul dword [esp + 0x44]
fmul dword [esp + 0x48]
fstp dword [esp + esi*4 + 0x98]
mov eax, dword [esp + esi*4 + 0x898]
cmp eax, ebp
jle 0x40e450
fadd st(1)
fmul dword [0x4284d0]
fadd dword [esp + esi*4 + 0x98]
fstp dword [esp + esi*4 + 0x98]
jmp 0x40e452
fstp st(0)
inc eax
fstp st(0)
fstp dword [esp + esi*4 + 0xc98]
mov dword [esp + esi*4 + 0x1098], edx
mov dword [esp + esi*4 + 0x898], eax
inc edi
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x28], ecx
jl 0x40e307
fld qword [esp + 0x60]
fadd qword [0x428428]
fstp qword [esp + 0x60]
fld qword [esp + 0x78]
fmul qword [esp + 0x60]
fld qword [esp + 0x90]
fmul qword [esp + 0x30]
fcompp
fnstsw ax
test ah, 0x41
jp 0x40e4df
fld qword [esp + 0x30]
push ebp
fadd qword [0x428428]
lea edx, [esp + 0x88]
push edx
mov edx, dword [esp + 0x48]
lea eax, [edi*4]
fstp qword [esp + 0x38]
push eax
lea ecx, [esp + 0x4a4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add esi, 1
adc eax, ebp
cmp eax, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
jl 0x40e297
jg 0x40e510
mov eax, dword [esp + 0x20]
mov ecx, esi
cmp ecx, eax
jb 0x40e297
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x40]
push eax
push ecx
push esi
mov ecx, ebx
call fcn.0040ce30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x48b008]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push ecx
call esi
mov edx, dword [esp + 0x5c]
push edx
push 1
mov dword [ebx + 0x48b008], 0
mov eax, dword [0x42f9e0]
push 0x400
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret