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

Disassembly:
push ebp
lea ebp, [esp - 0x670]
sub esp, 0x670
push 0xffffffffffffffff
push 0x5a9952
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x60a070]
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.00403c70
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.0040d260
test eax, eax
jne 0x4a5de5
mov dword [ebp + 0x48], eax
mov eax, dword [0x60dc28]
mov dword [ebp + 0x48], 0x60dc28
test eax, eax
je 0x4a5cae
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x60dc38
call fcn.0040d260
test eax, eax
je 0x4a5d0c
mov ecx, 0x60dc38
call fcn.00404970
lea edx, [ebp + 0x30]
cmp edx, eax
je 0x4a5cec
call fcn.00403fa0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4a5ce0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x30]
call fcn.004040c0
mov byte [ebp - 4], 0
mov eax, dword [0x60dc28]
test eax, eax
je 0x4a5d00
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0x48], 0
jmp 0x4a5de5
push 0x20c
lea eax, [ebp + 0x460]
push 0
push eax
call fcn.00540030
add esp, 0xc
lea eax, [ebp + 0x460]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4a5dc2
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x66a], ax
lea eax, [ebp + 0x4c]
push eax
call fcn.00540030
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 0x4a5da6
test eax, eax
je 0x4a5da6
add eax, eax
cmp eax, 0x412
jae 0x4a5fe4
xor ecx, ecx
mov word [ebp + eax + 0x4c], cx
lea eax, [ebp + 0x4c]
push eax
call fcn.00404680
add esp, 4
push eax
lea eax, [ebp + 0x4c]
push eax
jmp 0x4a5ce4
lea eax, [ebp + 0x460]
push eax
call fcn.00404680
add esp, 4
push eax
lea eax, [ebp + 0x460]
push eax
jmp 0x4a5ce4
mov byte [ebp - 4], 0
mov eax, dword [0x60dc28]
test eax, eax
je 0x4a5dd6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x48], 0
call fcn.0040d270
mov eax, dword [0x60e250]
test al, 1
jne 0x4a5e13
or eax, 1
mov dword [0x60e250], eax
mov byte [ebp - 4], 2
push 0
call fcn.0055ef4d
push eax
call fcn.0055efc6
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [0x60e250]
test al, 2
jne 0x4a5e3f
or eax, 2
mov dword [0x60e250], eax
mov byte [ebp - 4], 3
call fcn.0055efa5
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [0x60e254], edx
mov byte [ebp - 4], 0
mov eax, dword [0x60e250]
test al, 4
jne 0x4a5e6a
or eax, 4
mov dword [0x60e250], eax
mov byte [ebp - 4], 4
call fcn.0055efa5
cdq
mov ecx, 0x1388
idiv ecx
mov esi, edx
mov dword [0x60e25c], esi
mov byte [ebp - 4], 0
jmp 0x4a5e70
mov esi, dword [0x60e25c]
lea ecx, [ebp + 0x18]
call fcn.00403c50
mov byte [ebp - 4], 5
inc esi
push esi
push dword [0x60e254]
mov ecx, ebx
mov dword [0x60e25c], esi
call fcn.00403b40
push eax
lea eax, [ebp + 0x18]
push str._sD._.03d._.03d
push eax
call fcn.00497850
add esp, 0x14
lea ecx, [ebp + 0x18]
call fcn.0040d260
test eax, eax
je 0x4a5f86
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.004993b0
add esp, 4
mov byte [ebp - 4], 6
mov ecx, edi
push eax
call fcn.00403bc0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00403bb0
push 0
mov ecx, edi
call fcn.00403b40
push eax
call esi
test eax, eax
jne 0x4a5fd4
lea ecx, [ebp]
call fcn.00403c50
mov byte [ebp - 4], 7
lea edx, [ebp]
mov ecx, edi
call fcn.004d53c0
test al, al
je 0x4a5f2d
push 0
lea ecx, [ebp]
call fcn.00403b40
push eax
call esi
test eax, eax
jne 0x4a5fc8
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.00403bb0
call ebx
cmp eax, 0xb7
jne 0x4a5f86
mov eax, dword [0x60e25c]
mov ecx, dword [0x60e254]
inc eax
inc ecx
mov dword [0x60e25c], eax
push eax
mov dword [0x60e254], ecx
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00403b40
push eax
lea eax, [ebp + 0x18]
push str._sD._.03d._.03d
push eax
call fcn.00497850
add esp, 0x14
lea ecx, [ebp + 0x18]
call fcn.0040d260
test eax, eax
jne 0x4a5ec0
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00403bb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.00403bb0
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.0053c439
lea esp, [ebp + 0x670]
pop ebp
ret
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.00403bb0
mov edx, 0x10
mov ecx, edi
call fcn.00498f90
mov bl, 1
jmp 0x4a5f88
call fcn.0053cada
int3