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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448551
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4590c0]
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, 0x44e940
mov dword [ebp - 4], ebx
test ecx, 0xffff0000
jne 0x4045a6
mov edx, ecx
movzx edi, dx
call fcn.00401be0
cmp eax, ebx
je 0x4045b8
push eax
mov eax, edi
lea edi, [ebp - 0x220]
call fcn.0040d8d0
jmp 0x4045b8
push 0x44e940
xor edi, edi
lea eax, [ebp - 0x220]
call fcn.0040d120
push 0x103
lea eax, [ebp - 0x21b]
push ebx
mov dword [ebp - 4], 1
push eax
mov byte [ebp - 0x21c], 0
call fcn.004338d0
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 0x40464d
xor eax, eax
jmp 0x404692
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x404660
xor eax, eax
jmp 0x404692
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004383d0
mov edi, esp
test edi, edi
je 0x40468e
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 0x404690
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 0x44ea88
push ecx
call fcn.00431843
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x404752
push 0x104
lea edx, [ebp - 0x117]
push ebx
push edx
mov byte [ebp - 0x118], 0
call fcn.004338d0
push edi
push 0x104
lea eax, [ebp - 0x118]
push 1
push eax
call fcn.00431d56
add esp, 0x1c
test eax, eax
je 0x404749
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
jmp 0x404700
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404700
lea ecx, [ebp - 0x118]
sub eax, edx
push ecx
lea ebx, [ebp - 0x220]
call fcn.0040d990
push 0x105
lea edx, [ebp - 0x118]
push 0
push edx
call fcn.004338d0
push edi
push 0x104
lea eax, [ebp - 0x118]
push 1
push eax
call fcn.00431d56
add esp, 0x1c
test eax, eax
jne 0x4046f2
push edi
call fcn.00431a98
add esp, 4
mov edi, dword [ebp - 0x220]
add edi, 0xfffffff0
mov eax, edi
call fcn.00410f20
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 0x404793
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 0x4047af
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.00430efe
mov esp, ebp
pop ebp
ret