Function at 0x45d070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1436
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x4bf6bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x70], eax
cmp dword [esi + 0x10], ebx
je 0x45d20f
cmp dword [esi + 0x14], 8
jb 0x45d0bb
mov eax, dword [esi]
jmp 0x45d0bd
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 [ebp - 0x6c], edi
cmp edi, 0xffffffff
jne 0x45d216
lea ecx, [ebp - 0x110]
push ecx
call fcn.004059f0
mov dword [ebp - 4], ebx
push esi
push ecx
push str.._file:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [ebp - 0x110]
push str.return_false1._GetLastError:
push edx
call fcn.004090a0
add esp, 0xc
push eax
call fcn.0045f6e0
add esp, 4
push eax
call fcn.004090a0
add esp, 0xc
push eax
call fcn.00410900
add esp, 8
push 0x18
mov esi, 0xf
push str.CFileUtility::SetFileBuf
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00407f60
mov byte [ebp - 4], 1
push esi
push str.FileUtility.cpp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00407f60
mov byte [ebp - 4], 2
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00405af0
mov byte [ebp - 4], 3
push eax
push 0x125
push ebx
call fcn.004061f0
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.00462280
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], 8
jb 0x45d1ad
mov edx, dword [ebp - 0x64]
push edx
call fcn.0047bd91
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 1
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jb 0x45d1d7
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], edi
jb 0x45d1f4
mov edx, dword [ebp - 0x48]
push edx
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.004039b0
xor al, al
jmp 0x45d37d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x70]
push ebx
lea eax, [ebp - 0x74]
push eax
push ecx
push edx
push edi
mov byte [ebp - 0x65], 1
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45d371
lea eax, [ebp - 0x110]
push eax
call fcn.004059f0
mov dword [ebp - 4], 4
push esi
push ecx
push str.._file:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [ebp - 0x110]
push str.return_false2._GetLastError:
push ecx
call fcn.004090a0
add esp, 0xc
push eax
call fcn.0045f6e0
add esp, 4
push eax
call fcn.004090a0
add esp, 0xc
push eax
call fcn.00410900
add esp, 8
push 0x18
mov esi, 0xf
push str.CFileUtility::SetFileBuf
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00407f60
mov byte [ebp - 4], 5
push esi
push str.FileUtility.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00407f60
mov byte [ebp - 4], 6
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.00405af0
mov byte [ebp - 4], 7
push eax
push 0x132
push ebx
call fcn.004061f0
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.00462280
mov byte [ebp - 4], 6
cmp dword [ebp - 0x50], 8
jb 0x45d309
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0047bd91
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 5
mov edi, 0x10
cmp dword [ebp - 0x34], edi
jb 0x45d333
mov eax, dword [ebp - 0x48]
push eax
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 4
cmp dword [ebp - 0x18], edi
jb 0x45d351
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x110]
call fcn.004039b0
mov edi, dword [ebp - 0x6c]
jmp 0x45d374
mov bl, byte [ebp - 0x65]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret