Function at 0x47bc20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c25d6
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 0x47bdbf
cmp dword [esi + 0x14], 8
jb 0x47bc6b
mov eax, dword [esi]
jmp 0x47bc6d
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 0x47bdc6
lea ecx, [ebp - 0x110]
push ecx
call fcn.00410ff0
mov dword [ebp - 4], ebx
push esi
push ecx
push str._strFileName:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [ebp - 0x110]
push str.CreateFileW_FAILED._GetLastError:
push edx
call fcn.00418890
add esp, 0xc
push eax
call fcn.004102c0
add esp, 4
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
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.004159b0
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.004159b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.004110f0
mov byte [ebp - 4], 3
push eax
push 0x124
push ebx
call fcn.004117f0
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.0047acf0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], 8
jb 0x47bd5d
mov edx, dword [ebp - 0x64]
push edx
call fcn.0049b30a
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 0x47bd87
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049b30a
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 0x47bda4
mov edx, dword [ebp - 0x48]
push edx
call fcn.0049b30a
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.004039f0
xor al, al
jmp 0x47bf2d
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 0x47bf21
lea eax, [ebp - 0x110]
push eax
call fcn.00410ff0
mov dword [ebp - 4], 4
push esi
push ecx
push str._strFileName:
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [ebp - 0x110]
push str.WriteFile_FAILED._GetLastError:
push ecx
call fcn.00418890
add esp, 0xc
push eax
call fcn.004102c0
add esp, 4
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
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.004159b0
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.004159b0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.004110f0
mov byte [ebp - 4], 7
push eax
push 0x131
push ebx
call fcn.004117f0
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.0047acf0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x50], 8
jb 0x47beb9
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0049b30a
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 0x47bee3
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049b30a
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 0x47bf01
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0049b30a
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.004039f0
mov edi, dword [ebp - 0x6c]
jmp 0x47bf24
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.0049b315
mov esp, ebp
pop ebp
ret