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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x468620]
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 esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x260], 0
mov byte [ebp - 0x251], 0
test esi, esi
je 0x41fe17
cmp word [esi], 0
jne 0x41fe2c
cmp dword [ebx + 0x50], 8
mov byte [ebp - 0x251], 1
jb 0x41fe29
mov esi, dword [ebx + 0x3c]
jmp 0x41fe2c
lea esi, [ebx + 0x3c]
test edx, edx
je 0x41fe60
cmp word [edx], 0
je 0x41fe60
mov eax, edx
lea edi, [eax + 2]
jmp 0x41fe40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fe40
sub eax, edi
sar eax, 1
push eax
lea edi, [ebx + 0x58]
push edx
mov ecx, edi
call fcn.00401d50
jmp 0x41ffb7
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41fe9f
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fe80
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
lea ecx, [ebx + 0x58]
push edx
call fcn.00401d50
cmp dword [ebx + 0x6c], 8
lea edi, [ebx + 0x58]
jb 0x41feac
mov edx, dword [edi]
jmp 0x41feae
mov edx, edi
xor eax, eax
mov word [ebp - 0x234], ax
mov eax, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fed0
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x234]
call fcn.00401d50
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x41ff01
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
sete bl
cmp dword [ebp - 0x220], 8
jb 0x41ff2a
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0043a5c1
add esp, 4
test bl, bl
je 0x41ffb7
cmp dword [edi + 0x14], 8
jb 0x41ff3c
mov edx, dword [edi]
jmp 0x41ff3e
mov edx, edi
xor eax, eax
mov word [ebp - 0x234], ax
mov eax, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ff60
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x234]
call fcn.00401d50
mov eax, dword [ebp - 0x234]
mov ebx, 8
cmp dword [ebp - 0x220], ebx
jae 0x41ff95
lea eax, [ebp - 0x234]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [ebp - 0x220], ebx
jb 0x41ffb7
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0043a5c1
add esp, 4
cmp byte [ebp - 0x251], 0
jne 0x42002d
xor edx, edx
mov eax, esi
mov word [ebp - 0x234], dx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ffe2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00401d50
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x260], 1
jae 0x42001d
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
cmp eax, 1
je 0x42002d
mov bl, 1
jmp 0x42002f
xor bl, bl
test byte [ebp - 0x260], 1
je 0x420050
cmp dword [ebp - 0x220], 8
jb 0x420050
mov eax, dword [ebp - 0x234]
push eax
call fcn.0043a5c1
add esp, 4
test bl, bl
je 0x420065
mov ecx, dword [ebp - 0x258]
mov byte [ecx + 0x7c], 0
xor al, al
jmp 0x420197
xor ebx, ebx
xor edx, edx
mov eax, esi
mov word [ebp - 0x250], dx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x420085
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x250]
call fcn.00401d50
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], ebx
call fcn.004254b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x23c], 8
mov bl, al
jb 0x4200d0
mov eax, dword [ebp - 0x250]
push eax
call fcn.0043a5c1
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], cx
test bl, bl
jne 0x420101
mov edx, dword [ebp - 0x258]
mov byte [edx + 0x7c], cl
xor al, al
jmp 0x420197
mov ebx, dword [ebp - 0x258]
mov eax, dword [ebx + 0x78]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 0x78
test eax, eax
je 0x420120
push eax
call esi
mov dword [ebx], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x25c], 0
jb 0x420134
mov eax, dword [edi]
jmp 0x420136
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x420142
sub ecx, edi
mov edi, dword [ebp - 0x258]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x3c]
call fcn.00401d50
cmp byte [edi + 0x7d], 0
mov eax, dword [edi]
mov edx, dword [eax]
je 0x420175
push ebx
mov ecx, edi
call edx
mov byte [edi + 0x7c], al
jmp 0x420194
lea ecx, [ebp - 0x25c]
push ecx
mov ecx, edi
call edx
mov byte [edi + 0x7c], al
test al, al
je 0x420194
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x420194
push eax
call esi
mov al, byte [edi + 0x7c]
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.0043a0d5
mov esp, ebp
pop ebp
ret 8