Function at 0x4115d0
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.00416b20
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x4a7f38]
mov ecx, dword [ebx + 0x4a7f3c]
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 + 0x48a9f0]
mov dword [esp + 0x5c], edi
jg 0x411632
jl 0x41161e
cmp edx, esi
jae 0x411632
mov ebp, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ecx
jmp 0x41164e
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 0x41165a
cmp eax, ecx
je 0x411ae3
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.004124e0
mov edx, dword [ebx + 0x48ba08]
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 + 0x4a7f34]
lea ebp, [ebx + 0x4a7f30]
push ebp
push 0
push 0
push 1
push edi
call fcn.004016a0
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 0x4116f6
mov eax, dword [ebx + 0x48ba08]
push 0x64
push 1
push 0x400
push eax
call esi
mov dword [ebx + 0x48ba08], 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 + 0x4a7f34]
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 0x411766
jmp 0x411740
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x4a7f34]
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 0x411740
fld qword [0x42c3a8]
mov ecx, dword [ebx + 0x4a7f34]
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 [0x42c3a8]
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 0x411a98
jl 0x4117e5
cmp ecx, dword [esp + 0x20]
jae 0x411a98
fld qword [0x42c5b8]
fdiv qword [esp + 0x50]
fstp qword [esp + 0x88]
fld qword [0x42c5b8]
fdiv qword [esp + 0x68]
fstp qword [esp + 0x78]
fld qword [0x42c5b8]
fdiv qword [esp + 0x70]
fstp qword [esp + 0x90]
jmp 0x411820
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 [0x42b6c0]
call fcn.00416c6c
mov esi, eax
cmp esi, dword [esp + 0x3c]
je 0x41186b
mov edx, dword [ebx + 0x48ba08]
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 0x411a03
lea eax, [ebx + 0x48b1f0]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
cmp dword [ecx], ebp
jne 0x41189f
mov edx, dword [ebx + 0x4a7f34]
cmp dword [edx + 0x30], 1
je 0x4119eb
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push eax
push ecx
mov ecx, dword [ebx + 0x4a7f34]
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 [0x42e870]
fnstsw ax
test ah, 0x41
jne 0x4118da
mov edx, 1
jmp 0x4118f0
fld st(2)
fcomp dword [0x42e870]
fnstsw ax
test ah, 5
jp 0x4118ee
or edx, 0xffffffff
jmp 0x4118f0
xor edx, edx
cmp edx, dword [esp + esi*4 + 0x1098]
jle 0x4119ad
cmp edx, ebp
jle 0x4119ad
mov ecx, dword [esp + esi*4 + 0x898]
mov dword [esp + 0x4c], ecx
fild dword [esp + 0x4c]
fld qword [esp + 0x68]
fmul qword [0x42c660]
fld qword [esp + 0x70]
fmul qword [0x42c658]
fdivp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x4119ad
cmp ecx, ebp
fld dword [esp + esi*4 + 0xc98]
fabs
fld st(3)
fabs
fst dword [esp + 0x48]
fadd st(1)
fld dword [0x42c37c]
fdiv st(1)
fstp dword [esp + 0x44]
fstp st(0)
fld st(2)
fmul dword [0x42c654]
fmulp st(1)
fmul dword [esp + 0x44]
fadd dword [esp + esi*4 + 0x98]
fst dword [esp + 0x38]
fstp dword [esp + esi*4 + 0x98]
jle 0x411984
fild dword [esp + 0x4c]
fdivr dword [esp + 0x38]
fsqrt
jmp 0x411988
fld dword [esp + 0x38]
fstp dword [esp + edi*4 + 0x498]
mov dword [esp + esi*4 + 0x898], ebp
fld dword [0x42c654]
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 0x4119d0
fadd st(1)
fmul dword [0x42c654]
fadd dword [esp + esi*4 + 0x98]
fstp dword [esp + esi*4 + 0x98]
jmp 0x4119d2
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 0x411887
fld qword [esp + 0x60]
fadd qword [0x42c5b8]
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 0x411a5f
fld qword [esp + 0x30]
push ebp
fadd qword [0x42c5b8]
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 0x411817
jg 0x411a90
mov eax, dword [esp + 0x20]
mov ecx, esi
cmp ecx, eax
jb 0x411817
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.004103b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x48ba08]
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 + 0x48ba08], 0
mov eax, dword [0x43c480]
push 0x400
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret