Function at 0x422f7c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x422f84
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405284
xor eax, eax
push ebp
push 0x423228
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004093ac
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00422cd8
mov eax, dword [ebp - 4]
call fcn.004092e8
lea eax, [ebp - 0x14]
mov edx, dword [0x4409d8]
call fcn.00404e6c
lea eax, [ebp - 0x18]
call fcn.00404dd4
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00408b84
jmp 0x422ffc
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x42323c
call fcn.004050e0
mov eax, dword [ebp - 0x1c]
call fcn.00405094
cmp eax, 3
jl 0x422fec
push dword [0x440a08]
push dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
mov eax, 0x423248
call fcn.0042370c
push dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405154
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
call fcn.00404e6c
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004050e0
mov eax, dword [ebp - 0x34]
call fcn.004090d0
test al, al
je 0x423177
push 0xffff
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x416218]
call fcn.00419018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x423170
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x42313c
push 0
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004050e0
mov ecx, dword [ebp - 0x38]
mov dl, 1
mov eax, dword [0x416218]
call fcn.00419018
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x423135
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00418e60
inc dword [ebp - 8]
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00408b84
jmp 0x4230e1
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x42323c
call fcn.004050e0
mov eax, dword [ebp - 0x1c]
call fcn.00405094
cmp eax, 3
jl 0x4230d1
push dword [0x440a08]
push dword [ebp - 0x1c]
lea edx, [ebp - 0x3c]
mov eax, 0x423248
call fcn.0042370c
push dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405154
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
call fcn.00404e6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42313c
mov eax, dword [ebp - 0xc]
call fcn.00404008
ret
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004050e0
mov eax, dword [ebp - 0x40]
call fcn.004090d0
test al, al
jne 0x423082
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423177
mov eax, dword [ebp - 0x10]
call fcn.00404008
ret
mov eax, dword [ebp - 4]
call fcn.00405294
mov ebx, eax
mov edx, ebx
lea eax, [ebp - 0x44]
call fcn.00404fcc
mov eax, dword [ebp - 0x44]
call fcn.004090d0
test al, al
je 0x4231f8
mov eax, dword [ebp - 4]
call fcn.00423470
test al, al
jne 0x4231f8
lea edx, [ebp - 0x20]
mov eax, 0x32
call fcn.00421608
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push ebx
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4231f8
push 2
push 0
push 0xffffffffffffffce
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0x24]
push eax
push 0x32
lea eax, [ebp - 0x20]
call fcn.004052ec
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42322f
lea eax, [ebp - 0x44]
mov edx, 8
call fcn.00404df8
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00404df8
lea eax, [ebp - 4]
call fcn.00404dd4
ret