Function at 0x421c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
je 0x421fb4
push ebx
push edi
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], 0
mov eax, dword [ebx + 0x24]
shr eax, 5
and al, 1
mov dword [ebp - 4], eax
je 0x421d0c
push ecx
mov dword [esp], 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 4]
push 0
push 1
push 0x17
push ebx
call eax
add esp, 0x18
mov edi, eax
jmp 0x421d66
mov eax, dword [ebx + 0x18]
shl eax, 2
push eax
mov dword [ebp - 0xc], eax
call fcn.00427c0d
mov ecx, eax
add esp, 4
mov eax, dword [ebx + 0x18]
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x421d63
lea esi, [ecx + 1]
mov eax, dword [ebx + 0x10]
push edi
push ebx
call eax
fstp dword [esi - 1]
mov cl, byte [esi - 1]
inc edi
movzx eax, byte [esi + 2]
add esp, 8
mov byte [esi - 1], al
movzx eax, byte [esi + 1]
mov byte [esi + 2], cl
mov cl, byte [esi]
mov byte [esi], al
mov byte [esi + 1], cl
add esi, 4
cmp edi, dword [ebp - 0x14]
jl 0x421d32
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
push str.CcnK
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
cmp byte [ebp - 4], al
push 0
setne al
lea eax, [eax*4 + 0x30]
add eax, edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x19]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1a]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1b]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0
push eax
mov ecx, str.FxCk
mov eax, str.FPCh
push 4
cmove eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], 1
push eax
push 1
lea eax, [ebp - 0x19]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1a]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1b]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0x48]
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x19]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1a]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1b]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0x4c]
push 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x19]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1a]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1b]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push 0
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x19]
push 1
push eax
push esi
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1a]
push eax
push esi
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1b]
push eax
push esi
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push esi
call ebx
push 0
lea eax, [ebp - 0x10]
push eax
push 0x1c
push dword [ebp + 0x10]
push esi
call ebx
cmp byte [ebp - 4], 0
je 0x421f8d
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], edi
push eax
push 1
lea eax, [ebp - 0x19]
push eax
push esi
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1a]
push eax
push esi
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1b]
push eax
push esi
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push esi
call ebx
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 8]
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 4], 0
pop edi
pop ebx
jne 0x421fb4
push dword [ebp - 8]
call fcn.00427c16
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret