Function at 0x48e24e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad842
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x4c4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x140]
call fcn.00491390
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x3f0]
call fcn.00486380
lea ecx, [ebp - 0x3f8]
call fcn.00486380
mov dword [ebp - 0x3f4], 0
push 0x104
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov byte [ebp - 4], 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x140]
call fcn.0049149e
push 0
push str.output
lea edx, [ebp - 0x408]
push edx
lea ecx, [ebp - 0x140]
call fcn.00491575
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x460], eax
mov byte [ebp - 4], 2
push str.item
mov ecx, dword [ebp - 0x460]
call fcn.00491752
mov dword [ebp - 0x464], eax
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x408]
call fcn.0049150f
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.00416c30
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x468]
mov ecx, dword [eax]
mov dword [ebp - 0x3f0], ecx
jmp 0x48e373
push 0
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x3f0]
call fcn.0043b370
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.00416d80
mov dword [ebp - 0x46c], eax
mov ecx, dword [ebp - 0x46c]
push ecx
lea ecx, [ebp - 0x3f0]
call fcn.0043b3a0
mov byte [ebp - 0x470], al
mov edx, dword [ebp - 0x470]
and edx, 0xff
test edx, edx
je 0x48e7f9
lea ecx, [ebp - 0x3f0]
call fcn.00417440
mov dword [ebp - 0x474], eax
push 0
push str.errno
lea eax, [ebp - 0x41c]
push eax
mov ecx, dword [ebp - 0x474]
call fcn.00491575
mov dword [ebp - 0x478], eax
mov ecx, dword [ebp - 0x478]
mov dword [ebp - 0x47c], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x47c]
call fcn.00491677
mov dword [ebp - 0x480], eax
mov edx, dword [ebp - 0x480]
mov dword [ebp - 0x12c], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x41c]
call fcn.0049150f
mov eax, dword [ebp - 0x12c]
push eax
call fcn.0048a70f
add esp, 4
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.ntdll.dll_atoi]
add esp, 4
mov dword [ebp - 0x134], eax
lea ecx, [ebp - 0x3f0]
call fcn.00417440
mov dword [ebp - 0x484], eax
push 0
push str.file
lea edx, [ebp - 0x424]
push edx
mov ecx, dword [ebp - 0x484]
call fcn.00491575
mov dword [ebp - 0x488], eax
mov eax, dword [ebp - 0x488]
mov dword [ebp - 0x48c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48c]
call fcn.00491677
mov dword [ebp - 0x490], eax
mov ecx, dword [ebp - 0x490]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x424]
call fcn.0049150f
lea ecx, [ebp - 0x3f0]
call fcn.00417440
mov dword [ebp - 0x494], eax
push 0
push str.path
lea edx, [ebp - 0x42c]
push edx
mov ecx, dword [ebp - 0x494]
call fcn.00491575
mov dword [ebp - 0x498], eax
mov eax, dword [ebp - 0x498]
mov dword [ebp - 0x49c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x49c]
call fcn.00491677
mov dword [ebp - 0x4a0], eax
mov ecx, dword [ebp - 0x4a0]
mov dword [ebp - 0x138], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x42c]
call fcn.0049150f
lea ecx, [ebp - 0x3f0]
call fcn.00417440
mov dword [ebp - 0x4a4], eax
push 0
push 0x544884
lea edx, [ebp - 0x434]
push edx
mov ecx, dword [ebp - 0x4a4]
call fcn.00491575
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x4a8]
mov dword [ebp - 0x4ac], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4ac]
call fcn.00491677
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4b0]
mov dword [ebp - 0x3ec], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x434]
call fcn.0049150f
lea ecx, [ebp - 0x3f0]
call fcn.00417440
mov dword [ebp - 0x4b4], eax
push 0
push 0x544888
lea edx, [ebp - 0x43c]
push edx
mov ecx, dword [ebp - 0x4b4]
call fcn.00491575
mov dword [ebp - 0x4b8], eax
mov eax, dword [ebp - 0x4b8]
mov dword [ebp - 0x4bc], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x4bc]
call fcn.00491677
mov dword [ebp - 0x4c0], eax
mov ecx, dword [ebp - 0x4c0]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x43c]
call fcn.0049150f
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0048a70f
add esp, 4
mov eax, dword [ebp - 0x138]
push eax
call fcn.0048a70f
add esp, 4
mov ecx, dword [ebp - 0x3ec]
push ecx
call fcn.0048a70f
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call fcn.0048a70f
add esp, 4
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x48e654
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x48e649
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x48e62e
mov ecx, dword [ebp - 0x138]
movsx edx, byte [ecx]
test edx, edx
je 0x48e68e
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
lea edx, [ebp - 0x124]
push edx
push 0x54488c
push 0x104
lea eax, [ebp - 0x3e8]
push eax
call fcn.0040a230
add esp, 0x18
jmp 0x48e6b2
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x124]
push edx
push 0x544898
push 0x104
lea eax, [ebp - 0x3e8]
push eax
call fcn.0040a230
add esp, 0x14
lea ecx, [ebp - 0x3e8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00416fa0
mov dword [ebp - 0x4c4], eax
mov edx, dword [ebp - 0x4c4]
mov dword [ebp - 0x3fc], edx
cmp dword [ebp - 0x3fc], 0
jne 0x48e6e1
jmp 0x48e35f
cmp dword [ebp - 0x134], 0
je 0x48e6fc
mov eax, dword [ebp - 0x3fc]
mov dword [eax + 0x168], 2
jmp 0x48e70c
mov ecx, dword [ebp - 0x3fc]
mov dword [ecx + 0x168], 0
mov edx, dword [ebp - 0x3fc]
cmp dword [edx + 0x168], 0
jne 0x48e7f4
mov eax, dword [ebp - 0x3fc]
mov dword [eax + 0x180], 0
mov ecx, dword [ebp - 0x3fc]
mov dword [ecx + 0x168], 0
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x4c8], eax
mov edx, dword [ebp - 0x4c8]
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x3fc]
mov ecx, dword [ebp - 0x440]
mov dword [eax + 0x170], ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.ntdll.dll_strlen
add esp, 4
add eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x4cc], eax
mov ecx, dword [ebp - 0x4cc]
mov dword [ebp - 0x444], ecx
mov edx, dword [ebp - 0x3fc]
mov eax, dword [edx + 0x170]
mov ecx, dword [ebp - 0x444]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x3fc]
mov edx, dword [ecx + 0x170]
mov eax, dword [edx]
push eax
call fcn.00409100
mov ecx, dword [ebp - 0x3ec]
push ecx
push 0x21
mov edx, dword [ebp - 0x3fc]
mov eax, dword [edx + 0x170]
add eax, 4
push eax
call fcn.00409100
jmp 0x48e35f
jmp 0x48e826
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x48e877
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x44c], ecx
mov edx, dword [ebp - 0x44c]
mov dword [ebp - 0x448], edx
cmp dword [ebp - 0x448], 0
je 0x48e866
push 1
mov ecx, dword [ebp - 0x448]
call fcn.0048f360
mov dword [ebp - 0x4d0], eax
jmp 0x48e870
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x128], 0
je 0x48e8ca
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x454], eax
mov ecx, dword [ebp - 0x454]
mov dword [ebp - 0x450], ecx
cmp dword [ebp - 0x450], 0
je 0x48e8b6
push 1
mov ecx, dword [ebp - 0x450]
call fcn.0048f360
mov dword [ebp - 0x4d4], eax
jmp 0x48e8c0
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x128], 0
mov edx, dword [ebp - 0x3f4]
mov dword [ebp - 0x458], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.0049150f
mov eax, dword [ebp - 0x458]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret