Function at 0x47cdc0
Capabilities:
Create directory
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x567114
mov eax, dword fs:[0]
push eax
sub esp, 0xc88
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0xc80], eax
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0xc98]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], edi
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47ce23
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0xca0], 1
mov edx, str.prnlog
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.004820b0
mov esi, dword [esp + 0x34]
add esp, 8
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
jle 0x47d227
lea ecx, [esp + 0x14]
call fcn.00482350
mov byte [esp + 0xca0], 2
mov eax, dword [0x5ba21c]
test eax, eax
je 0x47ce9b
cmp dword [eax + 0x180], 0
je 0x47ce9b
mov eax, dword [edi]
lea ecx, [esp + 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax + edi + 0x54]
push dword [eax - 0xc]
push eax
call fcn.00443ec0
mov ebx, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push dword [esp + 0x18]
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 2
push dword [esp + 0x18]
call edi
push 0x584a04
lea eax, [esp + 0x18]
push 0x58b3a0
push eax
call fcn.00443ea0
add esp, 0xc
push 0
push dword [esp + 0x18]
push 0
call ebx
push 2
push dword [esp + 0x18]
call edi
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47cefe
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0xca0], 4
lea eax, [esp + 0x28]
push esi
push dword [esp + 0x18]
push 0x58ae70
push eax
call fcn.00415d20
mov edi, dword [esp + 0x38]
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x20], 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x20], ebx
push eax
push 4
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call ebx
inc dword [esp + 0x24]
lea eax, [esp + 0x20]
push 0
push eax
push 4
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0
lea eax, [esp + 0x24]
push eax
push 8
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push dword [esp + 0x28]
call ebx
xor eax, eax
push 0x206
push eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push eax
call fcn.00531bd0
push 0xa48
lea eax, [esp + 0x254]
push 0
push eax
call fcn.00531bd0
mov ebx, dword [esp + 0x30]
push dword [ebx + 0x44]
lea eax, [esp + 0x58]
push 0x104
push eax
call fcn.0052c92e
push dword [ebx + 0x48]
lea eax, [esp + 0x67c]
push 0x104
push eax
call fcn.0052c92e
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push dword [eax + ebx + 0x54]
lea eax, [esp + 0x480]
push 0x104
push eax
call fcn.0052c92e
add esp, 0x3c
cmp dword [ebx + 8], 0
jbe 0x47d11e
lea ecx, [esp + 0x18]
call fcn.00482350
mov byte [esp + 0xca0], 5
cmp dword [ebx + 8], 0
ja 0x47d06c
push 0x80070057
call fcn.004027b0
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x30]
push eax
add ecx, 4
call fcn.00436c90
mov byte [esp + 0xca0], 6
push 0x584a1c
push dword [eax]
lea eax, [esp + 0x20]
push 0x584a2c
push 0x58d7e8
push eax
call fcn.00443ea0
add esp, 0x14
mov byte [esp + 0xca0], 5
or ecx, 0xffffffff
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d0c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x47d0e2
push dword [eax - 0xc]
lea ecx, [esp + 0x1c]
call fcn.004024c0
mov eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0xa80]
push 0x104
push eax
call fcn.0052c92e
add esp, 0xc
mov byte [esp + 0xca0], 4
or ecx, 0xffffffff
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d11e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov eax, dword [eax + 4]
push dword [eax + ebx + 0x50]
lea eax, [esp + 0x248]
push 0x104
push eax
call fcn.0052c92e
mov eax, dword [ebx + 0x4c]
add esp, 0xc
mov dword [esp + 0x86c], eax
lea eax, [esp + 0x85c]
push eax
lea eax, [ebx + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
or eax, 0xffffffff
xor edx, edx
lea ecx, [ecx]
cmp eax, 4
jl 0x47d169
xor eax, eax
jmp 0x47d16a
inc eax
mov cl, byte [eax + 0x5898b8]
xor byte [esp + edx + 0x3c], cl
cmp eax, 4
jl 0x47d17d
xor eax, eax
jmp 0x47d17e
inc eax
mov cl, byte [eax + 0x5898b8]
xor byte [esp + edx + 0x3d], cl
cmp eax, 4
jl 0x47d191
xor eax, eax
jmp 0x47d192
inc eax
mov cl, byte [eax + 0x5898b8]
xor byte [esp + edx + 0x3e], cl
cmp eax, 4
jl 0x47d1a5
xor eax, eax
jmp 0x47d1a6
inc eax
mov cl, byte [eax + 0x5898b8]
xor byte [esp + edx + 0x3f], cl
add edx, 4
cmp edx, 0xc50
jb 0x47d160
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push 0
push eax
push 0xc50
lea eax, [esp + 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xca0], 2
add edi, 0xfffffff0
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d202
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0xca0], 1
mov ecx, ebx
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47d227
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0xca0], 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x47d249
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [esp + 0xc98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc80]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 4