Function at 0x414210
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc50
mov eax, dword [ebx + 0x10cc07c]
mov ecx, dword [ebx + 0x10cc080]
mov edx, dword [eax + 0xe0]
mov eax, dword [eax + 0xe4]
push ebp
push esi
mov esi, dword [ecx + 0xe0]
mov ecx, dword [ecx + 0xe4]
cmp eax, ecx
push edi
lea edi, [ebx + 0x10969f8]
mov dword [esp + 0x44], edi
jg 0x414263
jl 0x414251
cmp edx, esi
jae 0x414263
mov ebp, eax
mov eax, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x41427b
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], esi
mov edx, esi
cmp edx, eax
jne 0x414287
cmp ebp, ecx
je 0x41454d
sub eax, edx
mov edx, dword [0x43c548]
sbb ecx, ebp
push pe_nt_image_headers32
shl edx, 9
mov dword [esp + 0x14], eax
mov eax, dword [0x43b4b0]
add edx, 0x43b548
mov dword [esp + 0x18], ecx
fild qword [esp + 0x14]
push edx
push 0xcc
push eax
fstp qword [esp + 0x48]
mov dword [esp + 0x34], 0
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x43c548]
lea ecx, [eax + 1]
and ecx, 0x80000007
jns 0x4142de
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [ebx + 0x1097a10]
shl eax, 9
add eax, 0x43b548
push eax
push 2
push 0x400
push edx
mov dword [0x43c548], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x43b4c0]
mov esi, dword [ebx + 0x10cc078]
lea ecx, [eax + 0x4c9c]
push ecx
add eax, 0x489c
push eax
push 1
push edi
xor eax, eax
call fcn.004031e0
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 + 0x34], eax
jne 0x41436c
mov edx, dword [ebx + 0x1097a10]
push 0x64
push 1
push 0x400
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0x1097a10], 0
pop edi
pop esi
pop ebp
add esp, 0xc50
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0x43b4c0]
lea esi, [eax + 0x489c]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x4c9c]
mov eax, dword [ebx + 0x10cc078]
mov edx, dword [eax + 0x30]
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x458]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x2c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
cmp ebp, dword [esp + 0x1c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
jg 0x4144f7
jl 0x4143d9
cmp eax, dword [esp + 0x18]
jae 0x4144f7
fld qword [0x433c28]
fdiv qword [esp + 0x38]
fstp qword [esp + 0x48]
mov eax, dword [esp + 0x30]
xor edi, edi
xor esi, esi
test eax, eax
jle 0x414475
lea eax, [ebx + 0x10971f8]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
cmp dword [ecx], 0
jne 0x414411
cmp dword [esp + 0x40], 1
je 0x41443b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x10cc078]
push edx
push eax
mov eax, esi
call fcn.00402e60
fmul dword [esp + esi*4 + 0x58]
inc edi
fadd dword [esp + esi*4 + 0x458]
fstp dword [esp + edi*4 + 0x854]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
inc esi
add ecx, 4
cmp esi, eax
mov dword [esp + 0x20], ecx
jl 0x414401
test edi, edi
jle 0x414475
push 0
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [edi*4]
push edx
lea eax, [esp + 0x864]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
sub edx, esi
sbb eax, ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
fild qword [esp + 0x38]
fmul qword [esp + 0x48]
fmul qword [0x433cc0]
call fcn.0041d6e4
mov esi, eax
cmp esi, dword [esp + 0x24]
je 0x4144c1
mov ecx, dword [ebx + 0x1097a10]
push esi
push 1
push 0x400
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add esi, 1
adc eax, 0
cmp eax, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jl 0x4143e7
jg 0x4144f3
mov edx, dword [esp + 0x18]
mov eax, esi
cmp eax, edx
jb 0x4143e7
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x34]
push ebp
push eax
push esi
mov ecx, ebx
call fcn.00415470
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x1097a10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x64
push 1
push 0x400
push eax
mov dword [ebx + 0x1097a30], 1
call esi
mov ecx, dword [esp + 0x44]
mov edx, dword [0x43b528]
push ecx
push 1
push 0x400
push edx
mov dword [ebx + 0x1097a10], 0
call esi
pop edi
pop esi
pop ebp
add esp, 0xc50
ret