Function at 0x443880
Capabilities:
Get common file path

Disassembly:
sub esp, 0x428
mov ecx, dword [esp + 0x430]
push ebx
push ebp
mov ebp, dword [esp + 0x434]
push esi
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x22c]
push 0x104
push eax
xor ebx, ebx
push 0xffffffffffffffff
push ecx
push ebx
push ebx
mov byte [esp + 0x2b], 0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [esp + 0x454]
mov word [esp + 0x434], bx
cmp edx, ebx
je 0x44393f
xor esi, esi
cmp edi, ebx
jbe 0x44393f
lea eax, [ebp + 8]
mov ecx, dword [eax]
cmp ecx, edx
ja 0x4438ed
mov ebp, dword [eax + 4]
add ebp, ecx
cmp ebp, edx
ja 0x4438f9
inc esi
add eax, 0x210
cmp esi, edi
jb 0x4438de
jmp 0x44393f
mov eax, dword [esp + 0x43c]
mov edx, esi
shl edx, 5
add edx, esi
push 0x5c
shl edx, 4
lea ebp, [edx + eax + 0x14]
push ebp
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x443923
add eax, 2
jmp 0x443925
mov eax, ebp
lea ecx, [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x443ac7
mov edx, dword [esp + 0x450]
push 0x104
lea eax, [esp + 0x24]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
lea ecx, [esp + 0x2c]
push 0x5c
push ecx
mov word [esp + 0x23c], bx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov ebp, dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0x14
cmp eax, ebx
je 0x4439ee
push 0x104
lea edx, [esp + 0x24]
push 0x49e204
push edx
mov word [eax], bx
call ebp
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, 0x104
lea edx, [esp + 0x23c]
sub ecx, eax
lea eax, [esp + 0x30]
push ecx
push edx
push eax
call ebp
add esp, 0x1c
xor esi, esi
cmp edi, ebx
mov word [esp + 0x228], bx
jbe 0x4439ee
mov ecx, dword [esp + 0x43c]
lea ebx, [ecx + 0x14]
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x443ac5
inc esi
add ebx, 0x210
cmp esi, edi
jb 0x4439ca
xor ebx, ebx
lea eax, [esp + 0x20]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
lea ecx, [esp + 0x24]
push 0x49e204
push ecx
call ebp
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, 0x104
lea edx, [esp + 0x23c]
sub ecx, eax
lea eax, [esp + 0x30]
push ecx
push edx
push eax
call ebp
add esp, 0x1c
xor esi, esi
cmp edi, ebx
mov word [esp + 0x228], bx
jbe 0x443a6a
mov ecx, dword [esp + 0x43c]
lea ebp, [ecx + 0x14]
lea edx, [esp + 0x20]
push edx
push ebp
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x443ac7
inc esi
add ebp, 0x210
cmp esi, edi
jb 0x443a4c
xor esi, esi
cmp edi, ebx
jbe 0x443b8f
mov eax, dword [esp + 0x43c]
lea ebp, [eax + 0x14]
push 0x5c
push ebp
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x443a93
add eax, 2
jmp 0x443a95
mov eax, ebp
lea ecx, [esp + 0x22c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x443ac7
inc esi
add ebp, 0x210
cmp esi, edi
jb 0x443a7e
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret
xor ebx, ebx
mov eax, dword [esp + 0x43c]
mov edx, esi
shl edx, 5
add edx, esi
shl edx, 4
lea edi, [edx + eax + 4]
lea edx, [esp + 0x18]
lea ecx, [edi + 0x10]
push ecx
push edx
call fcn.0041f070
add esp, 8
cmp al, 1
jne 0x443b8f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0041f1a0
add esp, 8
cmp al, 1
jne 0x443b84
mov eax, dword [esp + 0x14]
cmp eax, ebx
jbe 0x443b84
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x443b84
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
push esi
push ecx
call fcn.0041f200
add esp, 0x10
cmp al, 1
jne 0x443b7a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jne 0x443b7a
mov edx, dword [esp + 0x448]
mov ecx, dword [esp + 0x444]
push edx
push ecx
push eax
push esi
call fcn.00443310
add esp, 0x10
cmp al, 1
jne 0x443b7a
mov eax, dword [esp + 0x44c]
mov edx, dword [edi + 4]
mov byte [esp + 0x13], 1
mov dword [eax], edx
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret