Function at 0x4089d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x447744
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x200
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push 0x45d144
mov eax, dword [ebp]
mov dword [esp + 0x18], ebp
push eax
call fcn.00421670
mov edi, eax
add esp, 8
or ebx, 0xffffffff
mov dword [esp + 0x10], edi
test edi, edi
jne 0x408aab
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x408aa3
mov edi, 0x45d1e8
mov ecx, ebx
xor eax, eax
lea edx, [esp + 0x10c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x45d144
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x110]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp]
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00421670
add esp, 8
mov dword [esp + 0x10], eax
mov edi, eax
test edi, edi
je 0x408c93
push edi
lea ecx, [esp + 0x48]
push 0x78
push ecx
call fcn.00422600
add esp, 0xc
test eax, eax
je 0x408c8a
cmp byte [esp + 0x44], 0x3b
je 0x408c72
lea edx, [esp + 0x44]
push edx
call fcn.004349c0
add esp, 4
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x44]
push eax
push ecx
push str._s__s
push edx
call fcn.004225b0
add esp, 0x10
cmp eax, 2
jne 0x408c72
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.00408cb0
test eax, eax
je 0x408b66
lea ecx, [esp + 0xbc]
lea esi, [eax + 8]
push ecx
mov ecx, esi
call fcn.0043ac5c
mov ecx, esi
call fcn.0043527e
mov ecx, esi
call fcn.00435235
push 0x45d890
mov ecx, esi
call fcn.0043afbe
cmp eax, ebx
je 0x408c72
push 0x5f
push eax
mov ecx, esi
call fcn.0043afef
push 0x45d890
mov ecx, esi
call fcn.0043afbe
cmp eax, ebx
jne 0x408b47
jmp 0x408c72
push 0xc
call fcn.004369c3
mov ebp, eax
add esp, 4
mov dword [esp + 0x18], ebp
test ebp, ebp
mov dword [esp + 0x218], 0
je 0x408c54
mov dword [ebp], vtable.CObject.0
lea esi, [ebp + 4]
mov byte [esp + 0x218], 1
mov ecx, esi
call fcn.0043a9c9
lea edi, [ebp + 8]
mov byte [esp + 0x218], 2
mov ecx, edi
call fcn.0043a9c9
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
mov byte [esp + 0x21c], 3
mov dword [ebp], method.CObject.virtual_0
call fcn.0043ac5c
lea eax, [esp + 0xbc]
mov ecx, edi
push eax
call fcn.0043ac5c
mov ecx, esi
call fcn.0043527e
mov ecx, esi
call fcn.00435235
push 0x45d890
mov ecx, esi
call fcn.0043afbe
cmp eax, ebx
je 0x408c16
push 0x5f
push eax
mov ecx, esi
call fcn.0043afef
push 0x45d890
mov ecx, esi
call fcn.0043afbe
cmp eax, ebx
jne 0x408bfc
mov ecx, edi
call fcn.0043527e
mov ecx, edi
call fcn.00435235
push 0x45d890
mov ecx, edi
call fcn.0043afbe
cmp eax, ebx
je 0x408c4e
push 0x5f
push eax
mov ecx, edi
call fcn.0043afef
push 0x45d890
mov ecx, edi
call fcn.0043afbe
cmp eax, ebx
jne 0x408c34
mov edi, dword [esp + 0x10]
jmp 0x408c56
xor ebp, ebp
mov ecx, dword [esp + 0x14]
push ebp
add ecx, 4
mov dword [esp + 0x21c], ebx
mov edx, dword [ecx + 8]
push edx
call fcn.00435bfe
mov ebp, dword [esp + 0x14]
push edi
lea eax, [esp + 0x48]
push 0x78
push eax
call fcn.00422600
add esp, 0xc
test eax, eax
jne 0x408ac3
push edi
call fcn.00421530
add esp, 4
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20c
ret