Function at 0x41c470
Capabilities:
Create directory
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f680
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x58c250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push ecx
push edx
push eax
call fcn.004f01e0
add esp, 0xc
push 1
push 0x53bb00
lea ecx, [ebp + 8]
call fcn.00401ed0
push 6
push 0x53bee4
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x53bb00
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [edi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 8]
call fcn.00401ed0
mov ecx, dword [ebp + 8]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
lea edx, [ebp - 0x10]
push edx
mov esi, eax
push 4
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call ebx
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
push esi
call ebx
push 0
lea eax, [ebp - 0x10]
push eax
push 8
lea ecx, [ebp - 0x30]
push ecx
push esi
call ebx
cmp dword [ebp - 0x10], 0
jne 0x41c5ac
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x10]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push esi
call ebx
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
push esi
call ebx
push 0
lea eax, [ebp - 0x10]
push eax
push 8
lea ecx, [ebp - 0x30]
push ecx
push esi
call ebx
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x28], eax
add eax, dword [ebp - 0x14]
push eax
push 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [ebp - 0x24]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x10]
push ecx
push edx
push ebx
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41c624
mov ecx, dword [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, edi
call fcn.0041c7a0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push edx
push eax
push ebx
call fcn.004f01e0
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x28]
add dword [ebp - 0x14], ecx
push ecx
add eax, ebx
push ebx
push eax
call fcn.004f01e0
mov edx, dword [ebp - 0x14]
mov ecx, dword [edi + 0x10]
add dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push edx
push ebx
lea eax, [ebp - 0x24]
push eax
push ecx
mov ecx, edi
call fcn.0041c7c0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x10]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push esi
call edi
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edx, [ebp - 0x18]
push edx
push esi
call edi
push 0
lea eax, [ebp - 0x10]
push eax
push 8
lea ecx, [ebp - 0x30]
push ecx
push esi
call edi
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push 0
lea edx, [ebp - 0x10]
push edx
push eax
push ecx
push esi
call edi
mov edx, dword [ebp - 0x1c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c6f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8