Function at 0x4b1eaa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x120], 0
push 0x228
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
push eax
call fcn.004e3c00
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4b1f18
mov eax, dword [ebp - 0x11c]
jmp 0x4b25cf
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x234]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x114]
push eax
push 0
push 0x531d4c
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x238], 1
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 0x118]
add eax, 0x10a
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 2
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004e483d
add esp, 0xc
mov ecx, dword [ebp - 0x118]
mov dword [ecx + 0x214], eax
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x214]
push eax
call fcn.004e3c2e
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4b1fd6
jmp 0x4b24c6
mov dword [ebp - 4], 1
cmp dword [ebp + 0x14], 0
je 0x4b1ffc
mov eax, dword [ebp - 0x118]
mov dword [eax + 0x21c], 2
jmp 0x4b200c
mov eax, dword [ebp - 0x118]
mov dword [eax + 0x21c], 3
mov eax, dword [ebp - 0x118]
mov dword [eax + 0x220], 1
mov eax, dword [ebp - 0x118]
mov dword [eax + 0x224], 0
cmp dword [ebp + 0xc], 0
je 0x4b2040
cmp dword [ebp + 0x10], 0
je 0x4b204a
cmp dword [ebp + 0x14], 0
je 0x4b22d2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x118]
mov dword [ecx], eax
push 0xc8
push 6
push 0
mov eax, dword [ebp - 0x118]
add eax, 0x218
push eax
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x214]
push eax
call fcn.00477c04
add esp, 0x14
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4b2097
jmp 0x4b24c6
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x218]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x218]
push eax
call fcn.004b1cf0
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4b20d5
jmp 0x4b24c6
cmp dword [ebp + 0xc], 0
jne 0x4b22cd
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp - 0x118]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x22
lea eax, [ebp - 0x2c0]
push eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.004e483d
add esp, 0xc
mov ecx, dword [ebp - 0x118]
mov dword [ecx + 0x210], eax
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x210]
push eax
call fcn.004e3c2e
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4b22c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0x20
je 0x4b21aa
cmp dword [ebp - 0x128], 0x13
je 0x4b21aa
cmp dword [ebp - 0x128], 5
je 0x4b21aa
mov eax, dword [ebp - 0x128]
push eax
mov eax, dword [0x533644]
push eax
call fcn.004ba322
add esp, 8
test eax, eax
je 0x4b219b
mov dword [ebp - 0x11c], 0xffffffff
jmp 0x4b21a5
mov dword [ebp - 0x11c], 0x2717
jmp 0x4b24c6
mov eax, dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x128], 0x20
jne 0x4b21ef
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x114]
push eax
push 0x84
call fcn.004e3fc4
add esp, 8
jmp 0x4b2211
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x114]
push eax
push 0x86
call fcn.004e3fc4
add esp, 8
push 0x84
push 4
lea eax, [ebp - 0x114]
push eax
mov eax, dword [0x533644]
push eax
call fcn.0049c67c
add esp, 0x10
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 7
jne 0x4b2259
mov dword [ebp - 0x11c], 0x2717
mov dword [ebp - 0x120], 1
jmp 0x4b24c6
push 0x40
lea eax, [ebp - 0x2c0]
push eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.004e483d
add esp, 0xc
mov ecx, dword [ebp - 0x118]
mov dword [ecx + 0x210], eax
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x210]
push eax
call fcn.004e3c2e
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4b22b6
mov dword [ebp - 0x11c], 0x2717
jmp 0x4b24c6
mov eax, dword [ebp - 0x118]
mov dword [eax + 0x224], 1
mov dword [ebp - 8], 1
jmp 0x4b24c6
cmp dword [ebp + 0x10], 0
je 0x4b22ec
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x118]
mov dword [ecx], eax
jmp 0x4b22f8
mov eax, dword [ebp - 0x118]
mov dword [eax], 0
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp - 0x118]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x22
lea eax, [ebp - 0x2c0]
push eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.004e483d
add esp, 0xc
mov ecx, dword [ebp - 0x118]
mov dword [ecx + 0x210], eax
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x210]
push eax
call fcn.004e3c2e
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4b23c2
push 0x40
lea eax, [ebp - 0x2c0]
push eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.004e483d
add esp, 0xc
mov ecx, dword [ebp - 0x118]
mov dword [ecx + 0x210], eax
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x210]
push eax
call fcn.004e3c2e
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4b23b2
mov dword [ebp - 0x11c], 0x2717
jmp 0x4b24c6
mov eax, dword [ebp - 0x118]
mov dword [eax + 0x224], 1
mov dword [ebp - 8], 1
push 0
push 1
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x214]
push eax
lea eax, [ebp - 0x114]
push eax
push 1
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x210]
push eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.004af38b
add esp, 0x1c
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4b2414
jmp 0x4b24c6
lea eax, [ebp - 0x12c]
push eax
push 0
mov eax, dword [ebp - 0x118]
add eax, 0x218
push eax
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x214]
push eax
call fcn.00477c97
add esp, 0x10
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4b2456
jmp 0x4b24c6
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x218]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
cmp dword [ebp + 0x10], 0
jne 0x4b249c
lea eax, [ebp - 0x2c0]
push eax
mov eax, dword [ebp - 0x118]
add eax, 4
push eax
call fcn.004aead0
add esp, 8
test eax, eax
je 0x4b249c
cmp dword [ebp + 0x14], 0
jne 0x4b24c6
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x118]
mov dword [eax + 0x210], 0xffffffff
mov dword [ebp - 8], 0
cmp dword [ebp - 0x11c], 0
je 0x4b25a4
cmp dword [ebp - 4], 0
je 0x4b24f0
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp - 8], 0
je 0x4b250d
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp - 0x238], 0
je 0x4b2538
push 0x200
lea eax, [ebp - 0x2c0]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004e483d
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x120], 0
je 0x4b255f
cmp dword [ebp - 0x11c], 0x2717
jne 0x4b255f
mov dword [ebp - 0x11c], 0xffffffff
mov eax, dword [ebp - 0x118]
cmp dword [eax + 0x224], 0
je 0x4b259f
cmp dword [ebp - 8], 0
je 0x4b259f
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x210]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x118]
mov dword [eax + 0x210], 0xffffffff
jmp 0x4b25b7
mov eax, dword [ebp - 0x124]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x11c]
jmp 0x4b25cf
pop edi
pop esi
pop ebx
leave
ret