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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451ce1
mov eax, dword fs:[0]
push eax
sub esp, 0x228
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x224], ebx
mov edx, dword [section..data]
mov dword [ebp - 0x228], eax
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov ecx, 0x4589af
mov dword [ebp - 4], ebx
test ecx, 0xffff0000
jne 0x4063b6
mov edx, ecx
movzx edi, dx
call fcn.00401be0
cmp eax, ebx
je 0x4063c8
push eax
mov eax, edi
lea edi, [ebp - 0x220]
call fcn.0040f7e0
jmp 0x4063c8
push 0x4589af
xor edi, edi
lea eax, [ebp - 0x220]
call fcn.0040eee0
push 0x103
lea eax, [ebp - 0x21b]
push ebx
mov dword [ebp - 4], 1
push eax
mov byte [ebp - 0x21c], 0
call fcn.0043c440
add esp, 0xc
push ebx
push 0x23
lea ecx, [ebp - 0x21c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.tmpst
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov dword [ebp - 0x234], 0xc
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [ebp - 0x224]
push edx
mov ecx, str.shst
call fcn.00401e30
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x224]
mov esi, eax
cmp eax, ebx
jne 0x40645d
xor eax, eax
jmp 0x4064a2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x406470
xor eax, eax
jmp 0x4064a2
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00440f80
mov edi, esp
test edi, edi
je 0x40649e
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x4064a0
xor eax, eax
xor ebx, ebx
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x21c]
push 0x458d74
push ecx
call fcn.0043a133
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x406562
push 0x104
lea edx, [ebp - 0x117]
push ebx
push edx
mov byte [ebp - 0x118], 0
call fcn.0043c440
push edi
push 0x104
lea eax, [ebp - 0x118]
push 1
push eax
call fcn.0043a646
add esp, 0x1c
test eax, eax
je 0x406559
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
jmp 0x406510
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406510
lea ecx, [ebp - 0x118]
sub eax, edx
push ecx
lea ebx, [ebp - 0x220]
call fcn.0040f8a0
push 0x105
lea edx, [ebp - 0x118]
push 0
push edx
call fcn.0043c440
push edi
push 0x104
lea eax, [ebp - 0x118]
push 1
push eax
call fcn.0043a646
add esp, 0x1c
test eax, eax
jne 0x406502
push edi
call fcn.0043a388
add esp, 4
mov edi, dword [ebp - 0x220]
add edi, 0xfffffff0
mov eax, edi
call fcn.00413860
mov esi, dword [ebp - 0x228]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or edx, 0xffffffff
lea ecx, [edi + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065bf
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, esi
lea esp, [ebp - 0x244]
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