Function at 0x48840e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a77b2
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.0048b600
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x3f0]
call fcn.00481a00
lea ecx, [ebp - 0x3f8]
call fcn.00481a00
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.0048b70e
push 0
push str.output
lea edx, [ebp - 0x408]
push edx
lea ecx, [ebp - 0x140]
call fcn.0048b7e5
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.0048b9c2
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.0048b77f
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.00416da0
mov dword [ebp - 0x468], eax
mov eax, dword [ebp - 0x468]
mov ecx, dword [eax]
mov dword [ebp - 0x3f0], ecx
jmp 0x488533
push 0
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x3f0]
call fcn.00416820
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004819b0
mov dword [ebp - 0x46c], eax
mov ecx, dword [ebp - 0x46c]
push ecx
lea ecx, [ebp - 0x3f0]
call fcn.00441530
mov byte [ebp - 0x470], al
mov edx, dword [ebp - 0x470]
and edx, 0xff
test edx, edx
je 0x4889b9
lea ecx, [ebp - 0x3f0]
call fcn.00417430
mov dword [ebp - 0x474], eax
push 0
push str.errno
lea eax, [ebp - 0x41c]
push eax
mov ecx, dword [ebp - 0x474]
call fcn.0048b7e5
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.0048b8e7
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.0048b77f
mov eax, dword [ebp - 0x12c]
push eax
call fcn.004848cf
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.00417430
mov dword [ebp - 0x484], eax
push 0
push str.file
lea edx, [ebp - 0x424]
push edx
mov ecx, dword [ebp - 0x484]
call fcn.0048b7e5
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.0048b8e7
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.0048b77f
lea ecx, [ebp - 0x3f0]
call fcn.00417430
mov dword [ebp - 0x494], eax
push 0
push str.path
lea edx, [ebp - 0x42c]
push edx
mov ecx, dword [ebp - 0x494]
call fcn.0048b7e5
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.0048b8e7
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.0048b77f
lea ecx, [ebp - 0x3f0]
call fcn.00417430
mov dword [ebp - 0x4a4], eax
push 0
push 0x53bd7c
lea edx, [ebp - 0x434]
push edx
mov ecx, dword [ebp - 0x4a4]
call fcn.0048b7e5
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.0048b8e7
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.0048b77f
lea ecx, [ebp - 0x3f0]
call fcn.00417430
mov dword [ebp - 0x4b4], eax
push 0
push 0x53bd80
lea edx, [ebp - 0x43c]
push edx
mov ecx, dword [ebp - 0x4b4]
call fcn.0048b7e5
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.0048b8e7
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.0048b77f
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004848cf
add esp, 4
mov eax, dword [ebp - 0x138]
push eax
call fcn.004848cf
add esp, 4
mov ecx, dword [ebp - 0x3ec]
push ecx
call fcn.004848cf
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call fcn.004848cf
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 0x488814
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
cmp ecx, 0x2f
jne 0x488809
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x4887ee
mov ecx, dword [ebp - 0x138]
movsx edx, byte [ecx]
test edx, edx
je 0x48884e
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
lea edx, [ebp - 0x124]
push edx
push 0x53bd84
push 0x104
lea eax, [ebp - 0x3e8]
push eax
call fcn.0040a2c0
add esp, 0x18
jmp 0x488872
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x124]
push edx
push 0x53bd90
push 0x104
lea eax, [ebp - 0x3e8]
push eax
call fcn.0040a2c0
add esp, 0x14
lea ecx, [ebp - 0x3e8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00416fb0
mov dword [ebp - 0x4c4], eax
mov edx, dword [ebp - 0x4c4]
mov dword [ebp - 0x3fc], edx
cmp dword [ebp - 0x3fc], 0
jne 0x4888a1
jmp 0x48851f
cmp dword [ebp - 0x134], 0
je 0x4888bc
mov eax, dword [ebp - 0x3fc]
mov dword [eax + 0x168], 2
jmp 0x4888cc
mov ecx, dword [ebp - 0x3fc]
mov dword [ecx + 0x168], 0
mov edx, dword [ebp - 0x3fc]
cmp dword [edx + 0x168], 0
jne 0x4889b4
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.00409190
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.00409190
jmp 0x48851f
jmp 0x4889e6
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x488a37
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 0x488a26
push 1
mov ecx, dword [ebp - 0x448]
call fcn.00489540
mov dword [ebp - 0x4d0], eax
jmp 0x488a30
mov dword [ebp - 0x4d0], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x128], 0
je 0x488a8a
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 0x488a76
push 1
mov ecx, dword [ebp - 0x450]
call fcn.00489540
mov dword [ebp - 0x4d4], eax
jmp 0x488a80
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.0048b77f
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