Function at 0x47af00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x344
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push ebp
mov ebp, dword [esp + 0x350]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x2c], edi
mov byte [0x4d3dc8], 1
call fcn.0047aea0
call fcn.00477170
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov eax, 0x100
push ecx
mov byte [esp + 0x1f], bl
mov byte [esp + 0x17], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1e6], bl
mov byte [esp + 0x20e], bl
mov dword [esp + 0x1da], ebx
mov word [esp + 0x1d8], ax
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1da], edx
lea edx, [esp + 0x1c]
mov ecx, 0x100
push edx
mov dword [esp + 0x1e2], eax
mov dword [esp + 0x24e], ebx
mov byte [esp + 0x6a], bl
mov byte [esp + 0x92], bl
mov dword [esp + 0x5e], ebx
mov word [esp + 0x5c], cx
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5e], eax
lea edx, [esp + 0x13]
push edx
lea eax, [esp + 0x1f]
push eax
push ebx
mov dword [esp + 0x6e], ecx
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x68]
push edx
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1f0]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x40]
push eax
push edi
lea edx, [esp + 0x54]
lea ecx, [esp + 0x50]
mov dword [esp + 0xfa], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], ebx
call fcn.004795f0
add esp, 0x2c
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov cl, byte [esp + 0x3c]
dec cl
mov byte [esp + 0x13], bl
cmp cl, 5
jbe 0x47b050
mov dl, byte [esp + 0x50]
dec dl
cmp dl, 5
jbe 0x47b050
mov esi, 2
mov dword [0x4d3dcc], esi
mov byte [0x4d3dd8], 1
mov byte [0x4d3dd9], 1
jmp 0x47b192
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x5c]
push ecx
push edx
lea esi, [esp + 0x3c]
lea edi, [esp + 0x1e0]
call fcn.00479e50
add esp, 0xc
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
je 0x47b0a2
cmp esi, 0xb7
jne 0x47b17a
cmp ebp, 0xffffffff
je 0x47b17a
lea eax, [esp + 0x13]
push eax
push ebp
mov ecx, 0x4d3ab0
call fcn.0047a190
mov esi, eax
cmp esi, ebx
jne 0x47b174
cmp byte [esp + 0x13], bl
jne 0x47b174
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x18]
push ecx
dec edi
push edi
push edx
push ebp
mov byte [0x4d3dd8], 1
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47b165
cmp edi, dword [esp + 0x14]
jne 0x47b15e
mov al, byte [esp + 0x3c]
dec al
cmp al, 5
ja 0x47b148
mov cl, byte [esp + 0x50]
dec cl
cmp cl, 5
ja 0x47b148
mov eax, dword [esp + 0x28]
push ebx
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47b165
cmp edi, dword [esp + 0x14]
jne 0x47b15e
mov ecx, dword [esp + 0x2c]
push ecx
mov byte [0x4d3dd9], 1
call fcn.0047d090
add esp, 4
jmp 0x47b18b
mov edx, dword [esp + 0x2c]
push edx
mov byte [0x4d3dd9], 1
call fcn.0047d090
add esp, 4
jmp 0x47b18b
mov byte [esp + 0x13], 0x1a
jmp 0x47b18b
mov byte [esp + 0x13], 0x19
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x47b18b
mov al, byte [esp + 0x13]
jmp 0x47b180
mov al, 6
mov byte [esp + 0x13], al
mov dword [0x4d3dcc], esi
mov byte [0x4d3dc9], al
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov cl, byte [esp + 0x13]
mov byte [0x4d3dd0], bl
mov byte [0x4d3dd1], cl
mov dword [0x4d3dd4], esi
cmp eax, ebx
je 0x47b1b9
push eax
call fcn.004482e1
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x47b1ca
push eax
call fcn.004482e1
add esp, 4
mov ecx, dword [esp + 0x350]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00447645
add esp, 0x344
ret