Function at 0x4aff80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x54f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x103
lea ecx, [ebp - 0x113]
push ebx
push ecx
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e8], ebx
mov byte [ebp - 0x114], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x114]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0xf
lea eax, [ebp - 0x114]
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x294], ebx
mov byte [ebp - 0x2a4], bl
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4b0010
sub eax, esi
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x2a4]
call fcn.004016d0
lea ecx, [ebp - 0x288]
push ebx
push ecx
mov dword [ebp - 4], ebx
call fcn.004eac70
sub esp, 0x14
mov ecx, esp
mov dword [ebp - 0x2e8], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 1
push ebx
lea edx, [ebp - 0x288]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00401460
lea eax, [ebp - 0x2c0]
push eax
call fcn.004eaa50
add esp, 0x20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2b0]
mov ecx, dword [ebp - 0x278]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x288]
call fcn.00403f80
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x250]
mov ecx, edx
cmp eax, 0x10
jae 0x4b00b6
lea ecx, [ebp - 0x250]
add ecx, dword [ebp - 0x240]
cmp eax, 0x10
mov eax, edx
jae 0x4b00c9
lea eax, [ebp - 0x250]
cmp eax, ecx
je 0x4b00ee
dec ecx
cmp eax, ecx
je 0x4b00ee
movzx edx, byte [eax]
mov byte [ebp - 0x2e0], dl
movzx edx, byte [ecx]
mov byte [eax], dl
movzx edx, byte [ebp - 0x2e0]
inc eax
mov byte [ecx], dl
cmp eax, ecx
jne 0x4b00cd
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
sub esp, 0x1c
mov ecx, esp
lea eax, [ebp - 0x218]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x2e8], esp
mov byte [ecx], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4b0138
sub eax, esi
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.004016d0
lea eax, [ebp - 0x234]
push eax
call fcn.004ead70
add esp, 0x20
push 1
push ebx
lea ecx, [ebp - 0x2e0]
push ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
mov byte [ebp - 0x2e0], 0x2e
call fcn.004038f0
mov esi, dword [sym.imp.mfc100.dll_Ordinal_1296]
cmp eax, 0xffffffff
je 0x4b01c2
dec eax
push eax
push ebx
lea edx, [ebp - 0x2dc]
push edx
lea ecx, [ebp - 0x234]
call fcn.00403f80
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
call fcn.004013e0
cmp dword [ebp - 0x2c8], 0x10
jb 0x4b01c2
mov eax, dword [ebp - 0x2dc]
push eax
call esi
add esp, 4
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x234]
mov ecx, eax
cmp edx, 0x10
jae 0x4b01db
lea ecx, [ebp - 0x234]
add ecx, dword [ebp - 0x224]
cmp edx, 0x10
jae 0x4b01ec
lea eax, [ebp - 0x234]
cmp eax, ecx
je 0x4b0211
dec ecx
cmp eax, ecx
je 0x4b0211
movzx edx, byte [eax]
mov byte [ebp - 0x2e0], dl
movzx edx, byte [ecx]
mov byte [eax], dl
movzx edx, byte [ebp - 0x2e0]
inc eax
mov byte [ecx], dl
cmp eax, ecx
jne 0x4b01f0
mov edi, 0xf
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], bl
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x2dc]
push edx
mov byte [ebp - 4], 6
call fcn.00431fb0
add esp, 0xc
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 7
call fcn.004013e0
mov byte [ebp - 4], 6
cmp dword [ebp - 0x2c8], 0x10
jb 0x4b0272
mov eax, dword [ebp - 0x2dc]
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x2e4]
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x2a4]
push edx
push eax
call fcn.00431fb0
add esp, 0xc
cmp dword [ebp - 0x258], 0x10
jb 0x4b02a4
mov ecx, dword [ebp - 0x26c]
push ecx
call esi
add esp, 4
cmp dword [ebp - 0x220], 0x10
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], bl
jb 0x4b02cb
mov edx, dword [ebp - 0x234]
push edx
call esi
add esp, 4
cmp dword [ebp - 0x23c], 0x10
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
jb 0x4b02f2
mov eax, dword [ebp - 0x250]
push eax
call esi
add esp, 4
cmp dword [ebp - 0x2ac], 0x10
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
jb 0x4b0319
mov ecx, dword [ebp - 0x2c0]
push ecx
call esi
add esp, 4
cmp dword [ebp - 0x274], 0x10
mov dword [ebp - 0x2ac], edi
mov dword [ebp - 0x2b0], ebx
mov byte [ebp - 0x2c0], bl
jb 0x4b0340
mov edx, dword [ebp - 0x288]
push edx
call esi
add esp, 4
cmp dword [ebp - 0x290], 0x10
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x278], ebx
mov byte [ebp - 0x288], bl
jb 0x4b0367
mov eax, dword [ebp - 0x2a4]
push eax
call esi
add esp, 4
mov eax, dword [ebp - 0x2e4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e8d32
mov esp, ebp
pop ebp
ret