Function at 0x489fa0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1eb8
call fcn.0049e430
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x1eb4], eax
push ebp
push esi
mov esi, dword [esp + 0x1ec4]
xor ebp, ebp
mov dword [esp + 0x18], esi
cmp dword [esi + 0x30], ebp
jne 0x489fea
cmp dword [0x4dbc60], 1
jne 0x48a180
push 0x4e798c
push 0x4e758c
mov ecx, esi
call fcn.00465600
push edi
push ebp
push ebp
push 0x4b1914
push 3
call fcn.00481a20
lea ecx, [esp + 0x1ac0]
push ecx
push 0x400
mov byte [esp + 0xc8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x400
lea edx, [esp + 0x12c4]
push edx
lea eax, [esp + 0x4c8]
xor edi, edi
push eax
mov ecx, esi
mov byte [esp + 0x8cc], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
call fcn.00465920
test al, al
je 0x48a3d6
push ebx
nop
cmp dword [0x4dc178], ebp
jne 0x48a3cb
lea ecx, [esp + 0x4c4]
push ecx
call fcn.0044db30
push eax
push 0x20c
call fcn.0045bde0
push eax
lea edx, [esp + 0xccc]
push edx
call fcn.0049deb5
add esp, 0xc
lea eax, [esp + 0xcc4]
push eax
call fcn.0047f6f0
call fcn.0047fef0
lea ecx, [esp + 0x1ac4]
push ecx
call fcn.004ac458
add esp, 4
lea edx, [esp + 0x12c4]
push edx
lea eax, [esp + 0x4c8]
push eax
call fcn.0042f9f0
push eax
call fcn.0042f9a0
test al, al
jne 0x48a3a7
inc dword [esp + 0x18]
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x4c8]
push edx
mov ecx, 0x4dfee0
call fcn.0043d600
test al, al
jne 0x48a3cb
cmp edi, ebp
je 0x48a0fb
push 0x4b1914
call fcn.0047f870
lea eax, [esp + 0x4c4]
push eax
call fcn.0044db30
push eax
call fcn.0047f870
push 0x264
call fcn.0045bde0
push eax
call fcn.0047f870
call fcn.0047b360
push ebp
push 1
lea ecx, [esp + 0x12cc]
push ecx
lea edx, [esp + 0x4d0]
push edx
mov ecx, 0x4e0c08
xor bl, bl
call fcn.004145d0
cmp eax, 1
je 0x48a1ba
push 1
push ebp
push ebp
lea eax, [esp + 0x40]
push eax
push ebp
lea ecx, [esp + 0x4d8]
push ecx
mov ecx, 0x4e0c08
mov bl, 1
call fcn.00413790
mov eax, dword [esp + 0x34]
sub eax, ebp
je 0x48a1b0
sub eax, 1
je 0x48a1a6
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], 0x3f3f3f
jmp 0x48a1c9
push 0x30
push 0x65
call fcn.0045bde0
push eax
push 0x14c
call fcn.0045bde0
push eax
mov eax, dword [0x4dc1c8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x48a469
mov dword [esp + 0x24], 0x50495a
jmp 0x48a1c9
mov dword [esp + 0x24], 0x524152
jmp 0x48a1c9
lea edx, [esp + 0x24]
push edx
mov ecx, 0x4e0c08
call fcn.004136e0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xcc8]
push str.______s
push ecx
call fcn.0049deb5
add esp, 0xc
lea edx, [esp + 0xcc4]
push edx
call fcn.0047f870
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x48a216
cmp eax, 1
je 0x48a216
push 0x266
call fcn.0045bde0
push eax
call fcn.0047f870
inc dword [esp + 0x10]
jmp 0x48a3a7
push 0x4b1914
call fcn.0047f870
push 0x4e758c
lea eax, [esp + 0x4c8]
push eax
call fcn.0042fa70
push 0x4e798c
lea ecx, [esp + 0x12c8]
push ecx
call fcn.0042fb00
mov edx, dword [esp + 0x34]
mov dword [0x4e613c], edx
test bl, bl
jne 0x48a268
cmp edi, ebp
je 0x48a268
lea eax, [esp + 0x8c4]
push eax
call fcn.004ac458
add esp, 4
jmp 0x48a2a8
mov edx, dword [0x4db83c]
mov eax, dword [0x4c9360]
lea ecx, [esp + 0x4c4]
push ecx
push 0x486b40
push edx
push str.REPAIRARC
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x48a3cb
lea ecx, [esp + 0x8c4]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x8c4]
mov byte [eax + 0x4e2eb0], cl
inc eax
test cl, cl
jne 0x48a2b0
call fcn.0047fef0
mov ecx, 0x4e0c08
call fcn.00411280
mov edx, dword [str.fixed.]
mov ax, word [0x4b3938]
mov cl, byte [0x4b393a]
push 0x4e758c
mov dword [esp + 0xc8], edx
mov word [esp + 0xcc], ax
mov byte [esp + 0xce], cl
call fcn.0044db30
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x48a305
lea edi, [esp + 0xc4]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x48a318
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
lea edx, [esp + 0xc8]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0042f950
test al, al
jne 0x48a39b
mov eax, dword [str.rebuilt.]
mov ecx, dword [0x4b392c]
mov dl, byte [0x4b3930]
push 0x4e758c
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov byte [esp + 0xd0], dl
call fcn.0044db30
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48a372
lea edi, [esp + 0xc4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x48a383
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc dword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push 0x400
lea eax, [esp + 0x12c8]
push eax
lea ecx, [esp + 0x4cc]
push ecx
mov ecx, esi
call fcn.00465920
test al, al
jne 0x48a050
pop ebx
cmp edi, ebp
jne 0x48a3e3
cmp dword [esp + 0xc], ebp
jne 0x48a3e3
mov edx, dword [0x4db83c]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
cmp dword [esp + 0x10], ebp
jne 0x48a40b
push 0x30
push 0x65
call fcn.0045bde0
push eax
push 0x14c
call fcn.0045bde0
push eax
mov eax, dword [0x4dc1c8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [0x4db83c], ebp
je 0x48a437
cmp dword [0x4dc178], ebp
je 0x48a422
push 0x271
jmp 0x48a427
push 0x270
call fcn.0045bde0
push eax
call fcn.0047f870
call fcn.0047f910
cmp dword [0x4dbc5c], ebp
jne 0x48a469
push ebp
push ebp
lea ecx, [esp + 0xc4]
push ecx
call fcn.0042f950
movzx edx, al
neg edx
sbb edx, edx
lea eax, [esp + 0xc0]
and edx, eax
push edx
mov ecx, 0x4dfee0
call fcn.00440fc0
mov ecx, dword [esp + 0x1ebc]
pop esi
pop ebp
xor ecx, esp
call fcn.0049dea6
add esp, 0x1eb8
ret 4