Function at 0x44f2a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x224
mov esi, dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x44f2dc
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x78
je 0x44f55c
call fcn.0057d110
lea edi, [ebp - 0x214]
mov dword [eax], 0x594e33
mov dword [eax + 4], 0x9d
xor eax, eax
cmp ebx, 0x104
setbe al
mov dword [esp + 4], 0x594e3f
mov dword [esp], eax
call fcn.0044df00
xor eax, eax
lea esi, [esi]
movzx edx, word [eax + 0x595774]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x44f318
mov dword [esp + 4], 1
mov dword [esp], edi
call esi
sub esp, 8
mov dword [ebp - 0x21c], eax
call fcn.0057d110
mov dword [eax], 0x594e33
mov dword [eax + 4], 0xa1
mov eax, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [esp + 4], 0x595774
mov dword [esp], edi
mov dword [ebp - 0x218], eax
call eax
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], 0x594e5d
movzx eax, al
mov dword [esp], eax
call fcn.0044df00
call fcn.0057d110
mov dword [eax], 0x594e33
mov dword [eax + 4], 0xa2
xor eax, eax
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp - 0x21c]
mov dword [esp + 4], str.GetSystemDirectoryW_returned__d__expected__d_n
cmp ebx, ecx
mov dword [esp + 8], ecx
sete al
mov dword [esp], eax
call fcn.0044df00
xor eax, eax
nop
movzx edx, word [eax + 0x595774]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x44f3c0
lea eax, [ebx - 1]
mov dword [ebp - 0x21c], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call esi
sub esp, 8
mov dword [ebp - 0x220], eax
call fcn.0057d110
mov dword [eax], 0x594e33
mov dword [eax + 4], 0xa7
mov dword [esp + 4], 0x595774
mov dword [esp], edi
mov eax, dword [ebp - 0x218]
call eax
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], 0x594e5d
movzx eax, al
mov dword [esp], eax
call fcn.0044df00
call fcn.0057d110
mov dword [eax], 0x594e33
mov dword [eax + 4], 0xa8
xor eax, eax
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp - 0x220]
mov dword [esp + 4], str.GetSystemDirectoryW_returned__d__expected__d_n
cmp ebx, ecx
mov dword [esp + 8], ecx
sete al
mov dword [esp], eax
call fcn.0044df00
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [eax + 0x595774]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x44f470
mov dword [esp + 4], ebx
mov dword [esp], edi
call esi
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x594e33
mov dword [eax + 4], 0xad
mov dword [esp + 4], 0x595774
mov dword [esp], edi
mov eax, dword [ebp - 0x218]
call eax
sub esp, 8
test eax, eax
setne al
mov dword [esp + 4], 0x594eab
movzx eax, al
mov dword [esp], eax
call fcn.0044df00
call fcn.0057d110
mov dword [eax], 0x594e33
cmp word [ebp - 0x214], 0
mov dword [eax + 4], 0xae
je 0x44f558
mov eax, edi
nop
add eax, 2
cmp word [eax], 0
jne 0x44f4f0
sub eax, edi
sar eax, 1
cmp ebx, eax
mov dword [esp + 4], 0x594ec4
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0044df00
call fcn.0057d110
mov dword [eax], 0x594e33
mov dword [eax + 4], 0xaf
mov eax, dword [ebp - 0x21c]
mov dword [esp + 8], ebx
cmp eax, ebx
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 4], str.GetSystemDirectoryW_returned__d__expected__d_n
movzx eax, al
mov dword [esp], eax
call fcn.0044df00
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x44f4fd
call fcn.0057d110
mov dword [eax], 0x594e33
mov dword [eax + 4], 0x9a
mov dword [esp], str.GetSystemDirectoryW_is_not_available_n
call fcn.0044e730
jmp 0x44f54d