Function at 0x496f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
xor eax, eax
push ebp
push 0x497271
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x417e50]
call fcn.00403bec
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x49723f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x64
lea eax, [ebp - 0x89]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 4]
lea edx, [ebp - 0x89]
mov ecx, 0x65
call fcn.00404db4
lea eax, [ebp - 0x90]
mov ecx, 0x497288
mov edx, dword [ebp - 4]
call fcn.00404e5c
mov eax, dword [ebp - 0x90]
call fcn.004095cc
test al, al
je 0x497229
lea eax, [ebp - 0x94]
mov ecx, 0x497288
mov edx, dword [ebp - 4]
call fcn.00404e5c
mov eax, dword [ebp - 0x94]
call fcn.00496650
cmp eax, 0x3e8000
jle 0x49703a
mov ecx, 0x4972a0
mov dl, 1
mov eax, dword [0x407c30]
call fcn.0040d244
call fcn.004044b8
lea eax, [ebp - 0x98]
mov ecx, 0x497288
mov edx, dword [ebp - 4]
call fcn.00404e5c
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor ebx, ebx
jmp 0x497219
lea ecx, [ebp - 4]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0xc]
inc ebx
lea ecx, [ebp - 8]
mov edx, 5
mov eax, dword [ebp - 4]
call fcn.0043a138
mov eax, dword [ebp - 8]
mov edx, 0x4972d0
call fcn.00404f6c
jne 0x497219
push 1
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4972e0
call fcn.004700d4
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x4972ec
call fcn.004700d4
mov esi, dword [ebp - 8]
test esi, esi
je 0x4970cc
sub esi, 4
mov esi, dword [esi]
mov eax, 0x4972f8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4970e5
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, 0x4972f8
call fcn.00404fd4
push eax
push esi
mov eax, dword [ebp - 8]
call fcn.00404fd4
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x497219
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov cl, 1
mov edx, 0x49730c
call fcn.004700d4
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x49714c
mov eax, dword [ebp - 0x24]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x24]
sub ecx, 4
mov edx, 5
mov eax, dword [ebp - 0xc]
call fcn.0043a180
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0xc]
call fcn.00404bdc
jmp 0x4971fe
lea ecx, [ebp - 4]
mov edx, ebx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0xc]
inc ebx
lea ecx, [ebp - 8]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0043a138
mov eax, dword [ebp - 8]
mov edx, 0x497318
call fcn.00404f6c
jne 0x4971d6
lea eax, [ebp - 8]
push eax
mov ecx, 0x13
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.0043a180
push dword [ebp - 8]
push 0x497324
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ed8
jmp 0x49720e
lea ecx, [ebp - 0xa4]
mov edx, 5
mov eax, dword [ebp - 4]
call fcn.0043a138
mov eax, dword [ebp - 0xa4]
mov edx, 0x4972d0
call fcn.00404f6c
jne 0x4971fe
dec ebx
jmp 0x49720e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x497179
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x497062
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497246
mov eax, dword [ebp - 0x14]
call fcn.00403c1c
ret