Function at 0x4221d0
Capabilities:
Create directory
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4513de
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x4650c0]
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 edi, ecx
mov dword [ebp - 0x1a0], edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x197]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x198], bl
call fcn.0043c440
add esp, 0xc
push ebx
push 0x23
lea ecx, [ebp - 0x198]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.SQ_PlatForm
lea edx, [ebp - 0x198]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x1ac]
push eax
lea ecx, [ebp - 0x198]
push ecx
mov dword [ebp - 0x1ac], 0xc
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 0x1a4], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x19c], eax
cmp eax, ebx
jne 0x422284
xor eax, eax
jmp 0x4222cb
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x4222c3
lea edi, [eax + eax]
mov eax, edi
call fcn.00440f80
mov esi, esp
cmp esi, ebx
je 0x4222c3
mov edx, dword [ebp - 0x19c]
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push edx
push ebx
push 3
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x4222c5
xor eax, eax
mov edi, dword [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x198]
push 0x458d74
push ecx
call fcn.0043a133
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x42240b
push 0x80
lea edx, [ebp - 0x93]
push ebx
push edx
mov byte [ebp - 0x94], bl
call fcn.0043c440
add esp, 0xc
lea eax, [ebp - 0x19c]
push eax
mov ecx, 0x4589e4
call fcn.00401e30
lea ecx, [ebp - 0x1a0]
push ecx
mov ecx, 0x4589e4
mov byte [ebp - 4], 1
call fcn.00401e30
push esi
push 0x80
lea edx, [ebp - 0x94]
push 1
push edx
mov byte [ebp - 4], 2
call fcn.0043a646
add esp, 0x10
test eax, eax
je 0x42239f
jmp 0x422360
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004016f0
push 0x81
lea ecx, [ebp - 0x94]
push ebx
push ecx
call fcn.0043c440
push esi
push 0x80
lea edx, [ebp - 0x94]
push 1
push edx
call fcn.0043a646
add esp, 0x1c
test eax, eax
jne 0x422360
push esi
call fcn.0043a388
mov eax, dword [ebp - 0x19c]
push eax
call fcn.0043a02e
mov dword [edi + 0x1a8], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1a0]
add eax, 0xfffffff0
mov dword [edi + 0x1ac], edx
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4223e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x19c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42240b
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 + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422431
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x1bc]
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.004397ee
mov esp, ebp
pop ebp
ret 4