Function at 0x489bb0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1eb8
call fcn.0049e650
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 0x489bfa
cmp dword [0x4dbc60], 1
jne 0x489d90
push 0x4e79ac
push 0x4e75ac
mov ecx, esi
call fcn.00465140
push edi
push ebp
push ebp
push 0x4b1914
push 3
call fcn.00481590
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.00465460
test al, al
je 0x489fe6
push ebx
nop
cmp dword [0x4dc178], ebp
jne 0x489fdb
lea ecx, [esp + 0x4c4]
push ecx
call fcn.0044d530
push eax
push 0x20c
call fcn.0045b8f0
push eax
lea edx, [esp + 0xccc]
push edx
call fcn.0049e0d5
add esp, 0xc
lea eax, [esp + 0xcc4]
push eax
call fcn.0047f250
call fcn.0047fa50
lea ecx, [esp + 0x1ac4]
push ecx
call fcn.004ac688
add esp, 4
lea edx, [esp + 0x12c4]
push edx
lea eax, [esp + 0x4c8]
push eax
call fcn.0042f940
push eax
call fcn.0042f8e0
test al, al
jne 0x489fb7
inc dword [esp + 0x18]
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x4c8]
push edx
mov ecx, 0x4dfef0
call fcn.0043d560
test al, al
jne 0x489fdb
cmp edi, ebp
je 0x489d0b
push 0x4b1914
call fcn.0047f3d0
lea eax, [esp + 0x4c4]
push eax
call fcn.0044d530
push eax
call fcn.0047f3d0
push 0x264
call fcn.0045b8f0
push eax
call fcn.0047f3d0
call fcn.0047aeb0
push ebp
push 1
lea ecx, [esp + 0x12cc]
push ecx
lea edx, [esp + 0x4d0]
push edx
mov ecx, 0x4e0c18
xor bl, bl
call fcn.00414420
cmp eax, 1
je 0x489dca
push 1
push ebp
push ebp
lea eax, [esp + 0x40]
push eax
push ebp
lea ecx, [esp + 0x4d8]
push ecx
mov ecx, 0x4e0c18
mov bl, 1
call fcn.004135e0
mov eax, dword [esp + 0x34]
sub eax, ebp
je 0x489dc0
sub eax, 1
je 0x489db6
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], 0x3f3f3f
jmp 0x489dd9
push 0x30
push 0x65
call fcn.0045b8f0
push eax
push 0x14c
call fcn.0045b8f0
push eax
mov eax, dword [0x4dc1c8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x48a079
mov dword [esp + 0x24], 0x50495a
jmp 0x489dd9
mov dword [esp + 0x24], 0x524152
jmp 0x489dd9
lea edx, [esp + 0x24]
push edx
mov ecx, 0x4e0c18
call fcn.00413530
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xcc8]
push str.______s
push ecx
call fcn.0049e0d5
add esp, 0xc
lea edx, [esp + 0xcc4]
push edx
call fcn.0047f3d0
mov eax, dword [esp + 0x34]
cmp eax, ebp
je 0x489e26
cmp eax, 1
je 0x489e26
push 0x266
call fcn.0045b8f0
push eax
call fcn.0047f3d0
inc dword [esp + 0x10]
jmp 0x489fb7
push 0x4b1914
call fcn.0047f3d0
push 0x4e75ac
lea eax, [esp + 0x4c8]
push eax
call fcn.0042f9c0
push 0x4e79ac
lea ecx, [esp + 0x12c8]
push ecx
call fcn.0042fa50
mov edx, dword [esp + 0x34]
mov dword [0x4e614c], edx
test bl, bl
jne 0x489e78
cmp edi, ebp
je 0x489e78
lea eax, [esp + 0x8c4]
push eax
call fcn.004ac688
add esp, 4
jmp 0x489eb8
mov edx, dword [0x4db83c]
mov eax, dword [0x4c9360]
lea ecx, [esp + 0x4c4]
push ecx
push 0x486750
push edx
push str.REPAIRARC
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x489fdb
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 + 0x4e2ec0], cl
inc eax
test cl, cl
jne 0x489ec0
call fcn.0047fa50
mov ecx, 0x4e0c18
call fcn.004112f0
mov edx, dword [str.fixed.]
mov ax, word [0x4b38fc]
mov cl, byte [0x4b38fe]
push 0x4e75ac
mov dword [esp + 0xc8], edx
mov word [esp + 0xcc], ax
mov byte [esp + 0xce], cl
call fcn.0044d530
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x489f15
lea edi, [esp + 0xc4]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x489f28
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.0042f890
test al, al
jne 0x489fab
mov eax, dword [str.rebuilt.]
mov ecx, dword [0x4b38f0]
mov dl, byte [0x4b38f4]
push 0x4e75ac
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], ecx
mov byte [esp + 0xd0], dl
call fcn.0044d530
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x489f82
lea edi, [esp + 0xc4]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x489f93
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.00465460
test al, al
jne 0x489c60
pop ebx
cmp edi, ebp
jne 0x489ff3
cmp dword [esp + 0xc], ebp
jne 0x489ff3
mov edx, dword [0x4db83c]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
cmp dword [esp + 0x10], ebp
jne 0x48a01b
push 0x30
push 0x65
call fcn.0045b8f0
push eax
push 0x14c
call fcn.0045b8f0
push eax
mov eax, dword [0x4dc1c8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [0x4db83c], ebp
je 0x48a047
cmp dword [0x4dc178], ebp
je 0x48a032
push 0x271
jmp 0x48a037
push 0x270
call fcn.0045b8f0
push eax
call fcn.0047f3d0
call fcn.0047f470
cmp dword [0x4dbc5c], ebp
jne 0x48a079
push ebp
push ebp
lea ecx, [esp + 0xc4]
push ecx
call fcn.0042f890
movzx edx, al
neg edx
sbb edx, edx
lea eax, [esp + 0xc0]
and edx, eax
push edx
mov ecx, 0x4dfef0
call fcn.00440f30
mov ecx, dword [esp + 0x1ebc]
pop esi
pop ebp
xor ecx, esp
call fcn.0049e0c6
add esp, 0x1eb8
ret 4