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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45e49b
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x474390]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x474390]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x1c], 0
mov byte [esp + 0x16], 0
test edi, edi
je 0x42f0df
cmp word [edi], 0
jne 0x42f0ef
cmp dword [esi + 0x48], 8
lea edi, [esi + 0x34]
mov byte [esp + 0x16], 1
jb 0x42f0ef
mov edi, dword [edi]
test edx, edx
je 0x42f120
cmp word [edx], 0
je 0x42f120
mov ecx, edx
lea ebx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f100
sub ecx, ebx
lea ebx, [esi + 0x4c]
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00410bb0
jmp 0x42f23c
lea eax, [esp + 0x54]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x42f164
cmp word [esp + 0x54], 0
jne 0x42f140
xor ecx, ecx
jmp 0x42f156
lea ecx, [esp + 0x54]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f147
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x58]
push eax
lea ecx, [esi + 0x4c]
call fcn.00410bb0
cmp dword [esi + 0x60], 8
lea ebx, [esi + 0x4c]
jb 0x42f171
mov edx, dword [ebx]
jmp 0x42f173
mov edx, ebx
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
cmp word [edx], ax
jne 0x42f193
xor ecx, ecx
jmp 0x42f1b1
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x20], eax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f1a0
sub ecx, dword [esp + 0x20]
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.00410bb0
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
sete al
cmp dword [esp + 0x38], 8
mov byte [esp + 0x17], al
jb 0x42f1f6
push dword [esp + 0x24]
call fcn.00440147
mov al, byte [esp + 0x1b]
add esp, 4
test al, al
je 0x42f23c
cmp dword [ebx + 0x14], 8
jb 0x42f204
mov eax, dword [ebx]
jmp 0x42f206
mov eax, ebx
push eax
lea ecx, [esp + 0x28]
call fcn.00410210
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
push 0
cmovae eax, dword [esp + 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esp + 0x38], 8
jb 0x42f23c
push dword [esp + 0x24]
call fcn.00440147
add esp, 4
cmp byte [esp + 0x16], 0
jne 0x42f2b1
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
cmp word [edi], ax
jne 0x42f263
xor ecx, ecx
jmp 0x42f27f
mov ecx, edi
lea edx, [ecx + 2]
jmp 0x42f270
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f270
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.00410bb0
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], 1
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
mov byte [esp + 0x16], 1
cmp eax, 1
jne 0x42f2b6
mov byte [esp + 0x16], 0
test byte [esp + 0x1c], 1
je 0x42f2d0
cmp dword [esp + 0x38], 8
jb 0x42f2d0
push dword [esp + 0x24]
call fcn.00440147
add esp, 4
cmp byte [esp + 0x16], 0
je 0x42f2e2
mov byte [esi + 0x6c], 0
xor al, al
jmp 0x42f3dc
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
cmp word [edi], ax
jne 0x42f302
xor ecx, ecx
jmp 0x42f316
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f307
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x44]
call fcn.00410bb0
lea edx, [esp + 0x3c]
mov dword [esp + 0x270], 0
mov ecx, ebx
call fcn.00435560
mov dword [esp + 0x270], 0xffffffff
cmp dword [esp + 0x50], 8
mov byte [esp + 0x17], al
jb 0x42f35d
push dword [esp + 0x3c]
call fcn.00440147
mov al, byte [esp + 0x1b]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], cx
test al, al
jne 0x42f37d
mov byte [esi + 0x6c], cl
jmp 0x42f3dc
mov eax, dword [esi + 0x68]
lea edi, [esi + 0x68]
test eax, eax
je 0x42f394
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea edx, [esi + 0x34]
mov dword [esp + 0x18], 0
mov ecx, ebx
call fcn.00435940
cmp byte [esi + 0x6d], 0
mov eax, dword [esi]
mov eax, dword [eax]
je 0x42f3ba
push edi
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
jmp 0x42f3d9
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
test al, al
je 0x42f3d9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42f3d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esi + 0x6c]
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0043f991
mov esp, ebp
pop ebp
ret 8