Function at 0x414ed0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [edi + 0x10cc07c]
mov ecx, dword [edi + 0x10cc080]
mov edx, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
sub esp, 0x448
push ebx
mov ebx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
cmp eax, ecx
push ebp
push esi
lea ebp, [edi + 0x10969f8]
jg 0x414f1f
jl 0x414f0d
cmp ebx, edx
jae 0x414f1f
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
jmp 0x414f3b
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
mov ecx, eax
mov eax, dword [esp + 0x14]
mov ebx, edx
mov edx, dword [esp + 0x18]
cmp ebx, edx
jne 0x414f47
cmp eax, ecx
je 0x415155
sub edx, ebx
sbb ecx, eax
mov eax, dword [0x43c548]
push pe_nt_image_headers32
shl eax, 9
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0x10cbbb4]
mov dword [esp + 0x28], ecx
fild qword [esp + 0x24]
mov ecx, dword [0x43b4b0]
add eax, 0x43b548
push eax
lea esi, [edi + 0x10cbbb4]
fstp qword [esp + 0x38]
push 0xcc
push ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x43c548]
lea edx, [eax + 1]
and edx, 0x80000007
jns 0x414fad
dec edx
or edx, 0xfffffff8
inc edx
shl eax, 9
add eax, 0x43b548
push eax
mov eax, dword [edi + 0x1097a10]
push 2
push 0x400
push eax
mov dword [0x43c548], edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov eax, esi
mov esi, dword [edi + 0x10cc078]
push ebp
call fcn.004037f0
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x3c], ebp
je 0x415135
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x14]
mov edx, ebx
cmp edx, eax
jg 0x415112
jl 0x415038
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jae 0x415112
fld qword [0x433c28]
fdiv qword [esp + 0x30]
fstp qword [esp + 0x40]
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
jle 0x41507f
lea ebp, [edi + 0x10cbc38]
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp]
push ebx
push ecx
mov ecx, dword [edi + 0x10cc078]
dec eax
call fcn.00402e60
fstp dword [esp + esi*4 + 0x50]
mov eax, dword [esp + 0x28]
inc esi
add ebp, 4
cmp esi, eax
jl 0x415056
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
push 0
lea edx, [esp + 0x50]
push edx
shl eax, 2
push eax
lea eax, [esp + 0x5c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
sub ecx, eax
mov edx, ebx
sbb edx, esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
fild qword [esp + 0x30]
fmul qword [esp + 0x40]
fmul qword [0x433cc0]
call fcn.0041d6e4
mov esi, eax
cmp esi, dword [esp + 0x2c]
je 0x4150e8
mov eax, dword [edi + 0x1097a10]
push esi
push 1
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x2c], esi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add edx, 1
adc ebx, 0
cmp ebx, eax
mov dword [esp + 0x20], edx
jl 0x415046
jg 0x415112
mov ecx, dword [esp + 0x18]
mov eax, edx
cmp eax, ecx
jb 0x415046
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push ebp
mov ecx, edi
call fcn.00415470
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x1097a30], 1
mov ecx, dword [edi + 0x1097a10]
push 0x64
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [edi + 0x1097a10], 0
pop esi
pop ebp
pop ebx
add esp, 0x448
ret