Function at 0x420d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6296
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff1a0]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x20], eax
cmp dword [esi + 0x10], ebx
je 0x420f98
cmp dword [esi + 0x14], 8
jb 0x420dbe
mov eax, dword [esi]
jmp 0x420dc0
mov eax, esi
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
jne 0x420f9f
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.00413cc0
mov dword [esp + 0x120], ebx
push esi
push ecx
push str._strFileName:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [esp + 0x3c]
push str.CreateFileW_FAILED._GetLastError:
push ecx
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x18
mov esi, 0xf
push str.CFileUtility::SetFileBuf
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.0040ebe0
mov byte [esp + 0x120], 1
push esi
push str.FileUtility.cpp
lea ecx, [esp + 0xc4]
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.0040ebe0
mov byte [esp + 0x120], 2
lea edx, [esp + 0xf4]
push edx
lea ecx, [esp + 0x28]
call fcn.00413de0
mov byte [esp + 0x120], 3
push eax
lea eax, [esp + 0xdc]
push eax
push 0x124
lea ecx, [esp + 0xc8]
push ecx
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x120], 2
cmp dword [esp + 0x108], 8
jb 0x420ef8
mov edx, dword [esp + 0xf4]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], ax
mov byte [esp + 0x120], 1
mov edi, 0x10
cmp dword [esp + 0xd0], edi
jb 0x420f3a
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
mov byte [esp + 0x120], bl
cmp dword [esp + 0xec], edi
jb 0x420f6f
mov edx, dword [esp + 0xd8]
push edx
call fcn.00490458
add esp, 4
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
mov dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00412cc0
xor al, al
jmp 0x421191
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x20]
push ebx
lea eax, [esp + 0x20]
push eax
push ecx
push edx
push edi
mov byte [esp + 0x2b], 1
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x421184
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.00413cc0
mov dword [esp + 0x120], 4
push esi
push ecx
push str._strFileName:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [esp + 0x3c]
push str.WriteFile_FAILED._GetLastError:
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
add esp, 4
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.00416df0
add esp, 8
push 0x18
mov esi, 0xf
push str.CFileUtility::SetFileBuf
lea ecx, [esp + 0xc4]
mov dword [esp + 0xd8], esi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
call fcn.0040ebe0
mov byte [esp + 0x120], 5
push esi
push str.FileUtility.cpp
lea ecx, [esp + 0xe0]
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], ebx
mov byte [esp + 0xe0], bl
call fcn.0040ebe0
mov byte [esp + 0x120], 6
lea ecx, [esp + 0xf4]
push ecx
lea ecx, [esp + 0x28]
call fcn.00413de0
mov byte [esp + 0x120], 7
push eax
lea edx, [esp + 0xc0]
push edx
push 0x131
lea eax, [esp + 0xe4]
push eax
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x120], 6
cmp dword [esp + 0x108], 8
jb 0x4210dd
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x108], 7
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], dx
mov byte [esp + 0x120], 5
mov edi, 0x10
cmp dword [esp + 0xec], edi
jb 0x42111f
mov eax, dword [esp + 0xd8]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
mov byte [esp + 0x120], 4
cmp dword [esp + 0xd0], edi
jb 0x421155
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
mov dword [esp + 0x120], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00412cc0
mov edi, dword [esp + 0x18]
jmp 0x421188
mov bl, byte [esp + 0x17]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004911d1
mov esp, ebp
pop ebp
ret