Function at 0x431ae0
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 0x522168
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 0x431b8d
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 0x431c37
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 0x431c50
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 0x431bec
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 0x431c0f
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 0x431c32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x432464
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 0x431c41
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 0x53d194
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 0x53d1a8
lea ecx, [ebp - 0x104a0]
call fcn.00401ed0
push str.write_
lea ecx, [ebp - 0x104a8]
call fcn.00411460
mov byte [ebp - 4], 0xa
mov edx, dword [0x58c214]
mov eax, dword [edx + 0xc]
mov ecx, 0x58c214
call eax
add eax, 0x10
mov dword [ebp - 0x104ac], eax
mov byte [ebp - 4], 0xc
push 0
push 0x119
call fcn.00401480
add esp, 8
test eax, eax
je 0x431d28
push 0x119
push eax
lea ecx, [ebp - 0x104ac]
call fcn.00406170
xor eax, eax
mov dword [ebp - 0x104c4], eax
cmp eax, 1
jne 0x431d6b
push 0
push 0x11a
call fcn.00401480
add esp, 8
test eax, eax
je 0x431d59
push 0x11a
push eax
lea ecx, [ebp - 0x104ac]
call fcn.00406170
push 6
push 0x53d1f0
lea ecx, [ebp - 0x104a8]
call fcn.00401e30
lea ecx, [ebp - 0x104a8]
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 0x431dde
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 0x431e04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [ebp - 0x10498], 0x10
jne 0x43235a
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 0x431e5f
mov edx, ecx
movzx esi, dx
push 0
push esi
call fcn.00401480
add esp, 8
test eax, eax
je 0x431e92
push esi
push eax
lea ecx, [ebp - 0x104b0]
call fcn.00406170
jmp 0x431e92
lea eax, [ebp - 0x1046c]
lea edx, [eax + 2]
jmp 0x431e70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431e70
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 - 0x104a8]
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 0x431ef1
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 0x43230e
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 0x431f30
sub eax, edx
sar eax, 1
mov esi, eax
mov dword [ebp - 0x104d4], esi
test esi, esi
jle 0x43230e
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 0x4322ff
cmp ax, word [ebp - 0x10228]
ja 0x4322ff
mov ax, word [ebp - 0x10246]
cmp ax, word [ebp - 0x10236]
jb 0x4322ff
cmp ax, word [ebp - 0x10226]
ja 0x4322ff
mov ax, word [ebp - 0x10242]
cmp ax, word [ebp - 0x10232]
jb 0x4322ff
cmp ax, word [ebp - 0x10222]
ja 0x4322ff
lea ecx, [ebp - 0x10218]
push ecx
lea ecx, [ebp - 0x104bc]
call fcn.00411460
mov byte [ebp - 4], 0x17
push 0x53bb00
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x1049c]
push eax
call fcn.0042b720
add esp, 0xc
mov byte [ebp - 4], 0x18
push 0x53d1a8
lea ecx, [ebp - 0x1049c]
call fcn.0041b330
mov ecx, dword [ebp - 0x1049c]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push ecx
call esi
push 0x53bb00
lea ecx, [ebp - 0x1049c]
call fcn.0041b330
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x1049c]
call fcn.0041b330
mov eax, dword [ebp - 0x1049c]
push 0
push eax
call esi
push 0x53bb00
lea ecx, [ebp - 0x1049c]
call fcn.0041b330
mov ecx, dword [ebp - 0x104ac]
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 ecx, dword [ebp - 0x1049c]
push 0
push ecx
call esi
lea edx, [ebp - 0x104a4]
push edx
push 0x53bb00
lea eax, [ebp - 0x104b4]
push eax
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 0x4321ef
mov edi, edi
push 0x5c
lea ecx, [ebp - 0x104b4]
push ecx
lea edx, [ebp - 0x104dc]
push edx
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 0x432184
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 0x4321e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x104a4], edi
jl 0x432130
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 0x43225e
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 0x432237
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 0x4322b3
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 0x4322d9
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 0x4322ff
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 0x432334
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 0x43235a
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 0x431e04
mov eax, dword [ebp - 0x104c4]
inc eax
mov dword [ebp - 0x104c4], eax
cmp eax, 2
jl 0x431d30
mov byte [ebp - 4], 0xa
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 0x4323b2
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 0x4323d8
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 0x4323fe
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 0x43241e
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 0x432441
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 0x432464
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 0x43248a
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