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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5608d8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5b3680]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
call fcn.00402a00
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x44edb7
push 0x80004005
call fcn.004027b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], 1
mov edx, 0x5833a4
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.004820b0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00482350
mov byte [esp + 0x50], 2
mov edi, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
push dword [esp + 0x14]
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 2
push dword [esp + 0x14]
call esi
push 0x5834b8
lea eax, [esp + 0x14]
push 0x58b238
push eax
call fcn.00443ea0
add esp, 0xc
push 0
push dword [esp + 0x14]
push 0
call edi
push 2
push dword [esp + 0x14]
call esi
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x44ee51
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x50], 4
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x24]
push edi
push dword [esp + 0x14]
push 0x58ae70
push eax
call fcn.00415d20
mov ebx, dword [esp + 0x2c]
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x44efcf
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.00402a00
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x44eedd
push 0x80004005
call fcn.004027b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x50], 6
mov eax, dword [esp + 0x20]
push dword [eax + 0x64]
movzx eax, word [esp + 0x40]
push eax
movzx eax, word [esp + 0x42]
push eax
movzx eax, word [esp + 0x44]
push eax
movzx eax, word [esp + 0x40]
push eax
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x4e]
push eax
lea eax, [esp + 0x30]
push str._d._d._d__d:_d:_d__s_shutdown_n
push eax
call fcn.00415d20
mov esi, dword [esp + 0x38]
add esp, 0x24
mov eax, dword [esi - 0xc]
add eax, eax
cmp dword [esi - 4], 1
mov dword [esp + 0x18], eax
jle 0x44ef54
push dword [esi - 0xc]
lea ecx, [esp + 0x18]
call fcn.004024c0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
or ecx, 0xffffffff
xor edx, edx
test eax, eax
je 0x44ef7a
lea ecx, [ecx]
cmp ecx, 4
jl 0x44ef69
xor ecx, ecx
jmp 0x44ef6a
inc ecx
mov al, byte [ecx + 0x5898b8]
xor byte [edx + esi], al
inc edx
cmp edx, dword [esp + 0x18]
jb 0x44ef60
cmp dword [esi - 4], 1
jle 0x44ef90
push dword [esi - 0xc]
lea ecx, [esp + 0x18]
call fcn.004024c0
mov esi, dword [esp + 0x14]
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x20]
push esi
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x50], 4
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44efcf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x20]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x44effc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x44f009
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x44f022
call fcn.00468f10
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x44f022
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0xa0], 0
je 0x44f059
push 0xffffffffffffffff
push dword [esi + 0xa0]
mov byte [esi + 0xa8], 1
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x44f059
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueEx]
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [0x5ba190]
mov edx, 5
mov eax, 0x85
cmp byte [ecx + 0xb4], 0
mov dword [ecx + 0xc], 5
cmovne eax, edx
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], eax
lea eax, [ecx + 8]
push eax
push dword [ecx + 4]
mov dword [ecx + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov byte [esp + 0x50], 2
lea edx, [ebx - 0x10]
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44f0c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 1
mov ecx, ebx
mov edx, dword [esp + 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44f0e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x50], 0xffffffff
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x44f103
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005295e2
mov esp, ebp
pop ebp
ret