Function at 0x446510
Capabilities:
Create directory
Enumerate files on windows
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5263b8
mov eax, dword fs:[0]
push eax
mov eax, 0x104e0
call fcn.004f01b0
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004f0550
mov edx, dword [0x58c214]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x58c214
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x104b8], edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x104d8]
push ecx
call fcn.004b45f0
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
add esp, 4
or eax, ecx
jge 0x4465bd
push 0x104
lea ecx, [ebp - 0x104b8]
call fcn.004018b0
mov edi, dword [ebp - 0x104b8]
mov edx, dword [ebp - 0x104d8]
push 0x104
push edi
push str.LogsDir
push edx
call fcn.004b4490
add esp, 0x10
test eax, eax
jne 0x446667
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x446680
mov byte [ebp - 4], 2
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44661c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
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 0x44663f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446662
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x446ea4
lea edx, [ebp - 0x218]
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x446671
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x104a0]
call fcn.00411460
mov byte [ebp - 4], 9
push 1
push 0x53bb00
lea ecx, [ebp - 0x104a0]
call fcn.00401ed0
push 8
push 0x53ea20
lea ecx, [ebp - 0x104a0]
call fcn.00401ed0
push 6
push str.DATA_
lea ecx, [ebp - 0x104a0]
call fcn.00401ed0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x104a0]
call fcn.00401ed0
push 1
push 0x53bb00
lea ecx, [ebp - 0x104a0]
call fcn.00401ed0
push 0xe
push 0x53ea5c
lea ecx, [ebp - 0x104a0]
call fcn.00401ed0
mov edx, dword [0x58c214]
mov eax, dword [edx + 0xc]
mov ecx, 0x58c214
call eax
add eax, 0x10
mov dword [ebp - 0x104a8], eax
mov byte [ebp - 4], 0xb
push 0
push 0x119
call fcn.00401480
add esp, 8
test eax, eax
je 0x446744
push 0x119
push eax
lea ecx, [ebp - 0x104a8]
call fcn.00406170
push str.write_
lea ecx, [ebp - 0x104ac]
call fcn.00411460
mov byte [ebp - 4], 0xc
xor eax, eax
mov dword [ebp - 0x104c4], eax
cmp eax, 1
jne 0x44679b
push 6
push 0x53d1f0
lea ecx, [ebp - 0x104ac]
call fcn.00401e30
push 0
push 0x11a
call fcn.00401480
add esp, 8
test eax, eax
je 0x44679b
push 0x11a
push eax
lea ecx, [ebp - 0x104a8]
call fcn.00406170
lea ecx, [ebp - 0x104ac]
push ecx
lea edx, [ebp - 0x104a0]
push edx
lea eax, [ebp - 0x104e8]
push eax
call fcn.004316a0
mov byte [ebp - 4], 0xd
push 0x53d1ec
push eax
lea ecx, [ebp - 0x104d0]
push ecx
call fcn.0042b720
add esp, 0x18
mov byte [ebp - 4], 0xe
mov eax, dword [eax]
lea edx, [ebp - 0x10498]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x104ec], eax
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x104d0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44680e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x104e8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446834
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [ebp - 0x10498], 0x10
jne 0x446d9a
mov edx, dword [0x58c214]
mov eax, dword [edx + 0xc]
mov ecx, 0x58c214
call eax
add eax, 0x10
mov dword [ebp - 0x104b0], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x1046c]
test ecx, 0xffff0000
jne 0x44688f
mov edx, ecx
movzx esi, dx
push 0
push esi
call fcn.00401480
add esp, 8
test eax, eax
je 0x4468c2
push esi
push eax
lea ecx, [ebp - 0x104b0]
call fcn.00406170
jmp 0x4468c2
lea eax, [ebp - 0x1046c]
lea edx, [eax + 2]
jmp 0x4468a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4468a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x1046c]
push eax
lea ecx, [ebp - 0x104b0]
call fcn.00401e30
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x104ac]
push ecx
lea edx, [ebp - 0x104a0]
push edx
lea eax, [ebp - 0x104e0]
push eax
call fcn.004316a0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x104b0]
push ecx
push eax
lea edx, [ebp - 0x104c0]
push edx
call fcn.004316a0
add esp, 0x18
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x104e0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446921
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x104c0]
push 0x53d1e4
push ecx
call fcn.004f2ab3
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x446d4e
push ebx
push 0x10000
lea edx, [ebp - 0x10218]
push 1
push edx
call fcn.004f42e8
lea eax, [ebp - 0x10218]
add esp, 0x10
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x446960
sub eax, edx
sar eax, 1
mov esi, eax
mov dword [ebp - 0x104d4], esi
test esi, esi
jle 0x446d4e
fld qword [ebp + 0x14]
lea eax, [ebp - 0x10238]
push eax
sub esp, 8
fstp qword [esp]
call fcn.00404c20
fld qword [ebp + 0x1c]
add esp, 0xc
lea ecx, [ebp - 0x10228]
push ecx
sub esp, 8
fstp qword [esp]
call fcn.00404c20
push 2
push 0
push ebx
call fcn.004f4022
push ebx
lea edi, [esi + esi]
call fcn.004f3f33
mov esi, 0xffffffee
sub esi, edi
push 0
add edi, 2
push edi
push ebx
add esi, eax
call fcn.004f4022
push 0x1000
push esi
call fcn.004f3d91
push ebx
push 0x10
mov dword [ebp - 0x104cc], eax
lea eax, [ebp - 0x10248]
push 1
push eax
mov dword [ebp - 0x104c8], edx
call fcn.004f42e8
mov ax, word [ebp - 0x10248]
add esp, 0x40
cmp ax, word [ebp - 0x10238]
jb 0x446d3f
cmp ax, word [ebp - 0x10228]
ja 0x446d3f
mov ax, word [ebp - 0x10246]
cmp ax, word [ebp - 0x10236]
jb 0x446d3f
cmp ax, word [ebp - 0x10226]
ja 0x446d3f
mov ax, word [ebp - 0x10242]
cmp ax, word [ebp - 0x10232]
jb 0x446d3f
cmp ax, word [ebp - 0x10222]
ja 0x446d3f
lea ecx, [ebp - 0x10218]
push ecx
lea ecx, [ebp - 0x104bc]
call fcn.00411460
mov byte [ebp - 4], 0x17
push str.Data_
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x1049c]
push eax
call fcn.0042b720
add esp, 0xc
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x1049c]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push ecx
call esi
push 0x53ea5c
lea ecx, [ebp - 0x1049c]
call fcn.0041b330
mov edx, dword [ebp - 0x1049c]
push 0
push edx
call esi
push 0x53bb00
lea ecx, [ebp - 0x1049c]
call fcn.0041b330
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x1049c]
call fcn.0041b330
mov ecx, dword [ebp - 0x1049c]
push 0
push ecx
call esi
push 0x53bb00
lea ecx, [ebp - 0x1049c]
call fcn.0041b330
mov ecx, dword [ebp - 0x104a8]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1049c]
call fcn.00401ed0
push 0x53bb00
lea ecx, [ebp - 0x1049c]
call fcn.0041b330
mov edx, dword [ebp - 0x1049c]
push 0
push edx
call esi
lea eax, [ebp - 0x104a4]
push eax
push 0x53bb00
lea ecx, [ebp - 0x104b4]
push ecx
lea ecx, [ebp - 0x104bc]
mov dword [ebp - 0x104a4], 0
call fcn.00431940
mov byte [ebp - 4], 0x19
mov edi, dword [ebp - 0x104d4]
cmp dword [ebp - 0x104a4], edi
jge 0x446c2f
lea esp, [esp]
push 0x5c
lea edx, [ebp - 0x104b4]
push edx
lea eax, [ebp - 0x104dc]
push eax
call fcn.00431760
add esp, 0xc
mov byte [ebp - 4], 0x1a
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x1049c]
call fcn.00401ed0
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x104dc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446bc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1049c]
push 0
push ecx
call esi
lea edx, [ebp - 0x104a4]
push edx
push 0x53bb00
lea eax, [ebp - 0x104e4]
push eax
lea ecx, [ebp - 0x104bc]
call fcn.00431940
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x104b4]
call fcn.004022d0
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x104e4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446c23
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x104a4], edi
jl 0x446b70
mov eax, dword [ebp - 0x104b4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x1049c]
call fcn.00401ed0
push 0x1000
call fcn.004dbe65
mov ecx, dword [ebp - 0x1049c]
push 0x53d1dc
push ecx
mov esi, eax
call fcn.004f2ab3
mov edi, eax
mov eax, dword [ebp - 0x104cc]
add esp, 0xc
test eax, eax
jle 0x446c9e
mov dword [ebp - 0x104a4], eax
push ebx
push 0x1000
push 1
push esi
call fcn.004f42e8
push edi
push 0x1000
push 1
push esi
call fcn.004f297b
add esp, 0x20
dec dword [ebp - 0x104a4]
jne 0x446c77
mov edx, dword [ebp - 0x104c8]
push ebx
push edx
push 1
push esi
call fcn.004f42e8
mov eax, dword [ebp - 0x104c8]
push edi
push eax
push 1
push esi
call fcn.004f297b
push edi
call fcn.004f3d35
push edi
call fcn.004f27b0
add esp, 0x28
mov byte [ebp - 4], 0x18
mov eax, dword [ebp - 0x104b4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446cf3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x1049c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446d19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x104bc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446d3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call fcn.004f27b0
mov edi, dword [ebp - 0x104b8]
add esp, 4
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x104c0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446d74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x104b0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446d9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x104ec]
lea ecx, [ebp - 0x10498]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x446834
mov eax, dword [ebp - 0x104c4]
inc eax
mov dword [ebp - 0x104c4], eax
cmp eax, 2
jl 0x446760
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x104ac]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446df2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x104a8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446e18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x104a0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446e3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446e5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
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 0x446e81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446ea4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x446eca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret