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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5837fd
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5eb770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00461e32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4306a6
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0
call fcn.00461e32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4306d9
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x220]
call fcn.00403340
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x220]
mov eax, dword [ecx - 0xc]
test eax, eax
jns 0x430729
or eax, 0xffffffff
jmp 0x430748
push 0x5b7ddc
push ecx
call fcn.00556fbe
add esp, 8
test eax, eax
jne 0x430740
or eax, 0xffffffff
jmp 0x430748
sub eax, dword [ebp - 0x220]
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040a240
push eax
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 3
call fcn.00404890
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430792
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00461e32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4307ac
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov ecx, str.CNTemp
mov byte [ebp - 4], 4
test ecx, 0xffff0000
jne 0x4307ed
mov edx, ecx
movzx esi, dx
push esi
call fcn.00461d28
test eax, eax
je 0x4307fd
push esi
push eax
lea ecx, [ebp - 0x21c]
call fcn.004035f0
jmp 0x4307fd
push str.CNTemp
lea ecx, [ebp - 0x21c]
call fcn.00428ee0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x22c]
push edx
mov byte [ebp - 4], 5
call fcn.0040a2c0
add esp, 0xc
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.00404890
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430854
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43087a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x224]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [ebp - 0x224]
lea ecx, [edi + 0x154]
push edx
call fcn.00404890
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4308c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4308ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055649d
mov esp, ebp
pop ebp
ret