Function at 0x4741f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3206
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x4eb6b8]
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 0x47438f
cmp dword [esi + 0x14], 8
jb 0x47423b
mov eax, dword [esi]
jmp 0x47423d
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 0x474396
lea ecx, [ebp - 0x110]
push ecx
call fcn.00414a60
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.0041d7d0
add esp, 0xc
push eax
call fcn.00475c10
add esp, 4
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
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.004190e0
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.004190e0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00414b60
mov byte [ebp - 4], 3
push eax
push 0x125
push ebx
call fcn.00413e40
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.00471900
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], 8
jb 0x47432d
mov edx, dword [ebp - 0x64]
push edx
call fcn.0049ca60
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 0x474357
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049ca60
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 0x474374
mov edx, dword [ebp - 0x48]
push edx
call fcn.0049ca60
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.00403e50
xor al, al
jmp 0x4744fd
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 0x4744f1
lea eax, [ebp - 0x110]
push eax
call fcn.00414a60
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.0041d7d0
add esp, 0xc
push eax
call fcn.00475c10
add esp, 4
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
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.004190e0
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.004190e0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.00414b60
mov byte [ebp - 4], 7
push eax
push 0x132
push ebx
call fcn.00413e40
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.00471900
mov byte [ebp - 4], 6
cmp dword [ebp - 0x50], 8
jb 0x474489
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0049ca60
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 0x4744b3
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049ca60
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 0x4744d1
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049ca60
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.00403e50
mov edi, dword [ebp - 0x6c]
jmp 0x4744f4
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.0049ca6b
mov esp, ebp
pop ebp
ret