Function at 0x4278c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x48106c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
sub esp, 8
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x18], 0
call fcn.00422740
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
push ecx
mov ecx, esi
call fcn.00421f30
add esp, 4
mov ecx, edi
push eax
call fcn.00422d40
test al, al
je 0x427a78
lea eax, [ebp - 0x48]
push eax
push str.fdata
lea ecx, [ebp - 0x70]
call fcn.00422af0
test al, al
je 0x427a78
lea eax, [ebp - 0x30]
push eax
push str.mtime
lea ecx, [ebp - 0x70]
call fcn.00422870
test al, al
je 0x427a78
lea eax, [ebp - 0x28]
push eax
push str.fsize
lea ecx, [ebp - 0x70]
call fcn.00422870
test al, al
je 0x427a78
mov ebx, dword [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push ebx
call fcn.0040db60
test eax, eax
je 0x427a78
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
push eax
call fcn.00427b30
add esp, 4
test eax, eax
je 0x427a78
cmp ebx, dword [ebp - 0x34]
jne 0x427a78
cmp dword [ebp - 0x24], 0
jne 0x427a78
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00427300
push ecx
push 0x80
push 2
push ecx
push 0
mov edx, 0x40000000
mov ecx, edi
call fcn.0041dd80
mov esi, eax
add esp, 0x14
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
cmp esi, reloc.USER32.dll_PeekMessageA
jne 0x427ab2
push ecx
mov ecx, edi
call fcn.00427220
mov eax, dword [ebp + 0xc]
add esp, 4
test eax, eax
je 0x427a33
mov dword [eax], 1
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
call fcn.0041ec10
mov esi, dword [ebp - 0x14]
cmp esi, reloc.USER32.dll_PeekMessageA
jne 0x427ab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.dst__s__open_err__x__n
call fcn.0041d110
add esp, 0xc
mov dword [ebp - 0x10], 0
push dword [ebp - 0x3c]
call fcn.004432ae
add esp, 4
push dword [ebp - 0x48]
call fcn.004432ae
add esp, 4
lea ecx, [ebp - 0x70]
call fcn.004227b0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp - 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x427b1b
cmp ebx, dword [ebp - 0x18]
jne 0x427b1b
cmp dword [ebp - 0x24], 0
jne 0x427b1b
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
add ecx, 0xb6109100
push 0
push 0x989680
adc eax, 2
push eax
push ecx
call fcn.0043d380
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], edx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], edx
push eax
push esi
mov dword [ebp - 0x2c], edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x10], 1
test esi, esi
je 0x427a7f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x427a7f