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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566fb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47c2e4
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
mov edx, str.actlog
push 0
push 1
lea ecx, [ebp - 0x14]
call fcn.004820b0
mov eax, dword [ebp - 0x14]
add esp, 8
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
jle 0x47c48a
lea ecx, [ebp - 0x10]
call fcn.00482350
mov byte [ebp - 4], 2
mov eax, dword [0x5ba214]
test eax, eax
je 0x47c34c
cmp dword [eax + 0x180], 0
je 0x47c34c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov eax, dword [eax + 0x54]
push dword [eax - 0xc]
push eax
call fcn.00443ec0
mov edi, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push dword [ebp - 0x10]
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 2
push dword [ebp - 0x10]
call esi
push 0x5847e8
lea eax, [ebp - 0x10]
push 0x58b238
push eax
call fcn.00443ea0
add esp, 0xc
push 0
push dword [ebp - 0x10]
push 0
call edi
push 2
push dword [ebp - 0x10]
call esi
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x47c3aa
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push 0x58ae70
push eax
call fcn.00415d20
mov esi, dword [ebp - 0x18]
push 0x58d874
push esi
call fcn.0052e5ea
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x47c42d
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x47c406
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47c426
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 1
jmp 0x47c48c
mov eax, dword [ebp + 8]
push edi
push 1
push dword [eax + 0xdc]
push dword [eax + 0xd8]
call fcn.0052b6e4
push edi
call fcn.0052c324
add esp, 0x14
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47c46a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47c48a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x47c4ad
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4