Function at 0x4a8dd0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x670]
sub esp, 0x670
push 0xffffffffffffffff
push 0x5ad3f2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x60e070]
xor eax, ebp
mov dword [ebp + 0x66c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 0x678]
push ecx
lea ecx, [ebp + 0x30]
call fcn.00403c50
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.0040d380
test eax, eax
jne 0x4a8f85
mov dword [ebp + 0x48], eax
mov eax, dword [0x611c08]
mov dword [ebp + 0x48], 0x611c08
test eax, eax
je 0x4a8e4e
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x611c18
call fcn.0040d380
test eax, eax
je 0x4a8eac
mov ecx, 0x611c18
call fcn.00404950
lea edx, [ebp + 0x30]
cmp edx, eax
je 0x4a8e8c
call fcn.00403f80
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4a8e80
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x30]
call fcn.004040a0
mov byte [ebp - 4], 0
mov eax, dword [0x611c08]
test eax, eax
je 0x4a8ea0
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0x48], 0
jmp 0x4a8f85
push 0x20c
lea eax, [ebp + 0x460]
push 0
push eax
call fcn.005431f0
add esp, 0xc
lea eax, [ebp + 0x460]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4a8f62
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x66a], ax
lea eax, [ebp + 0x4c]
push eax
call fcn.005431f0
add esp, 0xc
lea eax, [ebp + 0x4c]
push 0x208
push eax
lea eax, [ebp + 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4a8f46
test eax, eax
je 0x4a8f46
add eax, eax
cmp eax, 0x412
jae 0x4a9184
xor ecx, ecx
mov word [ebp + eax + 0x4c], cx
lea eax, [ebp + 0x4c]
push eax
call fcn.00404660
add esp, 4
push eax
lea eax, [ebp + 0x4c]
push eax
jmp 0x4a8e84
lea eax, [ebp + 0x460]
push eax
call fcn.00404660
add esp, 4
push eax
lea eax, [ebp + 0x460]
push eax
jmp 0x4a8e84
mov byte [ebp - 4], 0
mov eax, dword [0x611c08]
test eax, eax
je 0x4a8f76
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x48], 0
call fcn.0040d390
mov eax, dword [0x612230]
test al, 1
jne 0x4a8fb3
or eax, 1
mov dword [0x612230], eax
mov byte [ebp - 4], 2
push 0
call fcn.0056210d
push eax
call fcn.00562186
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [0x612230]
test al, 2
jne 0x4a8fdf
or eax, 2
mov dword [0x612230], eax
mov byte [ebp - 4], 3
call fcn.00562165
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [0x612234], edx
mov byte [ebp - 4], 0
mov eax, dword [0x612230]
test al, 4
jne 0x4a900a
or eax, 4
mov dword [0x612230], eax
mov byte [ebp - 4], 4
call fcn.00562165
cdq
mov ecx, 0x1388
idiv ecx
mov esi, edx
mov dword [0x61223c], esi
mov byte [ebp - 4], 0
jmp 0x4a9010
mov esi, dword [0x61223c]
lea ecx, [ebp + 0x18]
call fcn.00403c30
mov byte [ebp - 4], 5
inc esi
push esi
push dword [0x612234]
mov ecx, ebx
mov dword [0x61223c], esi
call fcn.00403b20
push eax
lea eax, [ebp + 0x18]
push str._sD._.03d._.03d
push eax
call fcn.0049aa20
add esp, 0x14
lea ecx, [ebp + 0x18]
call fcn.0040d380
test eax, eax
je 0x4a9126
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
lea eax, [ebp + 0x18]
push eax
lea edx, [ebp + 0x30]
lea ecx, [ebp - 0x28]
call fcn.0049c580
add esp, 4
mov byte [ebp - 4], 6
mov ecx, edi
push eax
call fcn.00403ba0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00403b90
push 0
mov ecx, edi
call fcn.00403b20
push eax
call esi
test eax, eax
jne 0x4a9174
lea ecx, [ebp]
call fcn.00403c30
mov byte [ebp - 4], 7
lea edx, [ebp]
mov ecx, edi
call fcn.004d8560
test al, al
je 0x4a90cd
push 0
lea ecx, [ebp]
call fcn.00403b20
push eax
call esi
test eax, eax
jne 0x4a9168
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.00403b90
call ebx
cmp eax, 0xb7
jne 0x4a9126
mov eax, dword [0x61223c]
mov ecx, dword [0x612234]
inc eax
inc ecx
mov dword [0x61223c], eax
push eax
mov dword [0x612234], ecx
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00403b20
push eax
lea eax, [ebp + 0x18]
push str._sD._.03d._.03d
push eax
call fcn.0049aa20
add esp, 0x14
lea ecx, [ebp + 0x18]
call fcn.0040d380
test eax, eax
jne 0x4a9060
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00403b90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.00403b90
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x66c]
xor ecx, ebp
call fcn.0053f5d9
lea esp, [ebp + 0x670]
pop ebp
ret
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.00403b90
mov edx, 0x10
mov ecx, edi
call fcn.0049c160
mov bl, 1
jmp 0x4a9128
call fcn.0053fc7a
int3