Function at 0x402e84
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
mov eax, 0x4c63f4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.0049fef4
push 0x104
lea edx, [ebp - 0x160]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x4c5235
lea ecx, [ebp - 0x160]
push ecx
call fcn.0049fb64
add esp, 8
push 0x4c5237
lea eax, [ebp - 0x160]
push eax
call fcn.0049fb64
mov word [ebp - 0x48], 8
add esp, 8
lea edx, [ebp - 0x160]
lea eax, [ebp - 4]
call fcn.004adb50
inc dword [ebp - 0x3c]
mov eax, dword [eax]
call fcn.00496ba8
test al, al
lea eax, [ebp - 4]
sete dl
and edx, 1
push edx
mov edx, 2
dec dword [ebp - 0x3c]
call fcn.004adc4c
pop ecx
test cl, cl
je 0x402ffd
mov word [ebp - 0x48], 0x14
push 0xffff
lea edx, [ebp - 0x160]
mov word [ebp - 0x48], 0x20
lea eax, [ebp - 8]
call fcn.004adb50
inc dword [ebp - 0x3c]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4890c4]
call fcn.0048c254
mov ebx, eax
dec dword [ebp - 0x3c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004adc4c
mov word [ebp - 0x48], 0
jmp 0x402fb4
mov eax, ebx
mov ecx, dword [esi + 0x818]
mov edx, dword [esi + 0x808]
mov esi, dword [eax]
call dword [esi + 8]
mov esi, ebx
mov dword [ebp - 0x14], esi
test esi, esi
je 0x402fee
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov word [ebp - 0x48], 0x44
mov edx, 3
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x48], 0x38
mov edx, dword [ebp - 0x58]
mov dword fs:[0], edx
jmp 0x4031fe
mov word [ebp - 0x48], 0x50
push 0x40
lea edx, [ebp - 0x160]
mov word [ebp - 0x48], 0x5c
lea eax, [ebp - 0x18]
call fcn.004adb50
inc dword [ebp - 0x3c]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4890c4]
call fcn.0048c254
mov ebx, eax
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004adc4c
mov word [ebp - 0x48], 0
jmp 0x403098
xor edi, edi
mov eax, ebx
call fcn.0048c04c
test eax, eax
jle 0x4030e9
mov eax, ebx
call fcn.0048c04c
push eax
call fcn.0049f2bc
pop ecx
mov dword [ebp - 0x5c], eax
mov eax, ebx
call fcn.0048c04c
mov ecx, eax
mov eax, ebx
mov edx, dword [ebp - 0x5c]
mov edi, dword [eax]
call dword [edi + 4]
mov eax, ebx
call fcn.0048c04c
push eax
mov edx, dword [ebp - 0x5c]
push edx
call fcn.004461f4
add esp, 8
mov edi, eax
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0049f0f4
pop ecx
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x24], 0
je 0x403113
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx]
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x48], 0x80
mov edx, 3
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x48], 0x74
cmp edi, dword [esi + 0x810]
je 0x4031f4
mov word [ebp - 0x48], 0x8c
push 0xffff
lea edx, [ebp - 0x160]
mov word [ebp - 0x48], 0x98
lea eax, [ebp - 0x28]
call fcn.004adb50
inc dword [ebp - 0x3c]
mov ecx, dword [eax]
mov dl, 1
mov eax, dword [0x4890c4]
call fcn.0048c254
mov ebx, eax
dec dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004adc4c
mov word [ebp - 0x48], 0
jmp 0x4031ba
mov eax, ebx
mov ecx, dword [esi + 0x818]
mov edx, dword [esi + 0x808]
mov esi, dword [eax]
call dword [esi + 8]
mov esi, ebx
mov dword [ebp - 0x34], esi
test esi, esi
je 0x4031f4
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov word [ebp - 0x48], 0xbc
mov edx, 3
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x48], 0xb0
mov edx, dword [ebp - 0x58]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret