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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c1ccb
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4e3a20]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x4e3a20]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x44]
push eax
push 0x104
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x49456e
cmp word [esp + 0x44], 0
jne 0x49454a
xor edx, edx
jmp 0x494560
lea edx, [esp + 0x44]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x494551
sub edx, ecx
sar edx, 1
push edx
lea eax, [esp + 0x48]
lea ecx, [esi + 0x4c]
push eax
call fcn.00402440
cmp dword [esi + 0x60], 8
jb 0x494579
mov edx, dword [esi + 0x4c]
jmp 0x49457c
lea edx, [esi + 0x4c]
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [edx], ax
jne 0x49459c
xor ecx, ecx
jmp 0x4945b0
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4945a1
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00402440
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
setne al
test al, al
sete bl
cmp dword [esp + 0x28], 8
jb 0x4945ed
push dword [esp + 0x14]
call fcn.004a37d1
add esp, 4
test bl, bl
je 0x494635
cmp dword [esi + 0x60], 8
jb 0x4945fc
mov eax, dword [esi + 0x4c]
jmp 0x4945ff
lea eax, [esi + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.00405990
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp dword [esp + 0x28], 8
jb 0x494635
push dword [esp + 0x14]
call fcn.004a37d1
add esp, 4
push 9
xor eax, eax
push str.PDApp.log
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.00402440
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
cmp eax, 1
setne bl
cmp dword [esp + 0x28], 8
jb 0x49468a
push dword [esp + 0x14]
call fcn.004a37d1
add esp, 4
test bl, bl
je 0x494699
mov byte [esi + 0x6c], 0
xor al, al
jmp 0x494779
push 9
xor eax, eax
push str.PDApp.log
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.00402440
lea edx, [esp + 0x2c]
lea ecx, [esi + 0x4c]
mov dword [esp + 0x260], 0
call fcn.0049b3c0
mov dword [esp + 0x260], 0xffffffff
cmp dword [esp + 0x40], 8
mov bl, al
jb 0x4946f7
push dword [esp + 0x2c]
call fcn.004a37d1
add esp, 4
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
test bl, bl
jne 0x494719
mov byte [esi + 0x6c], al
xor al, al
jmp 0x494779
mov eax, dword [esi + 0x68]
lea ebx, [esi + 0x68]
test eax, eax
je 0x494730
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
lea edx, [esi + 0x34]
lea ecx, [esi + 0x4c]
mov dword [esp + 0x10], 0
call fcn.0049b7a0
cmp byte [esi + 0x6d], 0
mov eax, dword [esi]
mov eax, dword [eax]
je 0x494757
push ebx
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
jmp 0x494776
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call eax
mov byte [esi + 0x6c], al
test al, al
je 0x494776
mov eax, dword [esp + 0x10]
test eax, eax
je 0x494776
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esi + 0x6c]
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004a2eda
mov esp, ebp
pop ebp
ret 8