Function at 0x4147a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x860
mov eax, dword [edi + 0x10cc07c]
mov ecx, dword [edi + 0x10cc080]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
push ebx
push ebp
push esi
mov esi, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
cmp eax, ecx
lea ebx, [edi + 0x10969f8]
mov dword [esp + 0x44], ebx
jg 0x4147f3
jl 0x4147e1
cmp edx, esi
jae 0x4147f3
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
jmp 0x41480f
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edx
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov esi, edx
mov edx, dword [esp + 0x18]
cmp edx, esi
jne 0x41481b
cmp eax, ecx
je 0x414bf7
sub esi, edx
sbb ecx, eax
mov eax, dword [0x44f440]
push 0x100
shl eax, 9
mov dword [esp + 0x28], ecx
mov ecx, dword [0x44e3ac]
add eax, 0x44e440
push eax
mov dword [esp + 0x28], esi
fild qword [esp + 0x28]
push 0xcf
push ecx
mov dword [esp + 0x4c], 0
fstp qword [esp + 0x68]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x44f440]
lea edx, [eax + 1]
and edx, 0x80000007
jns 0x414871
dec edx
or edx, 0xfffffff8
inc edx
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
shl eax, 9
add eax, 0x44e440
push eax
mov eax, dword [edi + 0x1097a10]
push 2
push 0x400
push eax
mov dword [0x44f440], edx
call ebp
mov ecx, dword [edi + 0x10975fc]
mov esi, dword [edi + 0x10cc078]
push 0
push 0
push 0
push ecx
push ebx
call fcn.00402fb0
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x30], ebx
jne 0x4148f6
mov edx, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push edx
call ebp
mov dword [edi + 0x1097a10], 0
pop esi
pop ebp
pop ebx
add esp, 0x860
ret
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 0x10cc078]
mov esi, dword [eax + 0x2c]
imul esi, dword [edi + 0x10975fc]
add esi, esi
add esi, esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push 0
push eax
mov dword [esp + 0x44], eax
call fcn.00425ee0
mov ecx, dword [edi + 0x10cc078]
mov ebp, dword [ecx + 0x2c]
add esp, 0xc
cmp dword [edi + 0x10975fc], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x10], 0
jbe 0x4149cf
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x14], ebx
xor esi, esi
test ebp, ebp
jle 0x4149a7
mov eax, dword [edi + 0x10975fc]
mov ecx, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
cdq
sub ecx, eax
mov eax, 0
sbb eax, edx
add ecx, dword [esp + 0x18]
adc eax, dword [esp + 0x1c]
push eax
push ecx
mov ecx, dword [edi + 0x10cc078]
mov eax, esi
call fcn.00402c20
fstp dword [ebx]
add esi, 1
add ebx, 4
cmp esi, ebp
jl 0x41496b
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
add ecx, 1
lea eax, [ebp*4]
add ebx, eax
cmp ecx, dword [edi + 0x10975fc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
jb 0x414965
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
jg 0x414b96
jl 0x414a08
cmp eax, dword [esp + 0x28]
jae 0x414b96
jmp 0x414a08
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
sub edx, eax
mov eax, dword [esp + 0x24]
sbb eax, esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
fild qword [esp + 0x50]
fdiv qword [esp + 0x58]
fmul qword [0x4424c8]
call fcn.00427ae0
mov ebx, eax
cmp ebx, dword [esp + 0x3c]
je 0x414a50
mov ecx, dword [edi + 0x1097a10]
push ebx
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x3c], ebx
xor ebx, ebx
test ebp, ebp
mov dword [esp + 0x14], ebx
jle 0x414b29
mov eax, dword [esp + 0x38]
lea esi, [esp + 0x68]
mov ecx, esi
lea edx, [edi + 0x10971f8]
sub eax, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x4c], eax
jmp 0x414a80
mov edx, dword [esp + 0x10]
cmp dword [edx], 0
jne 0x414a99
mov eax, dword [edi + 0x10cc078]
cmp dword [eax + 0x30], 1
je 0x414b16
mov eax, dword [edi + 0x10975fc]
mov ecx, dword [edi + 0x10cc078]
cdq
sub eax, edx
sar eax, 1
cdq
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
push edx
push eax
mov eax, ebx
call fcn.00402c20
mov edx, dword [esp + 0x38]
mov ecx, ebp
imul ecx, dword [esp + 0x34]
add ecx, ebx
fstp dword [edx + ecx*4]
mov eax, dword [edi + 0x10975fc]
test eax, eax
fldz
fstp dword [esi]
mov dword [esp + 0x48], eax
jle 0x414afe
mov eax, dword [esp + 0x4c]
mov ecx, dword [edi + 0x10975fc]
lea edx, [ebp*4]
add eax, esi
fld dword [esi]
fadd dword [eax]
add eax, edx
sub ecx, 1
fstp dword [esi]
jne 0x414af1
fld dword [esi]
mov eax, dword [esp + 0x14]
fidiv dword [esp + 0x48]
add eax, 1
mov dword [esp + 0x14], eax
fstp dword [esp + eax*4 + 0x464]
add dword [esp + 0x10], 4
add ebx, 1
add esi, 4
cmp ebx, ebp
jl 0x414a80
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x68]
push ecx
lea eax, [edx*4]
mov edx, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x474]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 0x10975fc]
add eax, 1
cdq
idiv ecx
mov eax, ecx
mov dword [esp + 0x34], edx
cdq
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
adc eax, edx
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
jl 0x414a00
jg 0x414b8e
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x28]
jb 0x414a00
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x18]
push esi
push ecx
mov ecx, edi
call fcn.00415cd0
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x1097a10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push eax
call esi
mov ecx, dword [esp + 0x44]
mov edx, dword [0x44e420]
push ecx
push 1
push 0x400
push edx
mov dword [edi + 0x1097a10], 0
call esi
pop esi
pop ebp
pop ebx
add esp, 0x860
ret