Function at 0x51a9c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5d4eac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1cc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x7f0]
cmp eax, esi
je 0x51aa47
cmp dword [edi + 0xd4], esi
jne 0x51aa0d
lea ecx, [edi + 0xdc]
push ecx
push eax
mov ecx, 0x64b480
call fcn.00537790
test eax, eax
jne 0x51aa47
mov ecx, edi
call fcn.0051ae90
mov edx, dword [edi + 0x7f0]
lea ecx, [edi + 0xdc]
neg eax
sbb eax, eax
inc eax
push eax
push edx
call fcn.005468b0
test eax, eax
jne 0x51aa47
pop edi
pop esi
mov ecx, dword [esp + 0x1cc]
mov dword fs:[0], ecx
add esp, 0x1d8
ret
push ebx
push ebp
call fcn.005b2355
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xa8]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x51ac4f
cmp dword [0x64b1fc], esi
jne 0x51ac4f
mov ebx, dword [edi + 0x68c]
mov dword [esp + 0x10], esi
cmp ebx, esi
mov dword [esp + 0x24], esi
je 0x51ac4f
mov eax, ebx
mov ebp, ebx
mov ebx, dword [ebx]
mov esi, dword [eax + 8]
cmp dword [esi + 8], 0xe110
jne 0x51aaac
mov eax, dword [esi + 0x10]
push str.Recent_File
push eax
call fcn.004f59f0
add esp, 8
test eax, eax
je 0x51aac8
mov esi, dword [esi + 0xc]
mov ecx, dword [esp + 0x10]
and esi, 1
inc ecx
test ebx, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], ecx
jne 0x51aa85
jmp 0x51ac4f
lea ecx, [edi + 0x688]
push ebp
call fcn.00592d83
test esi, esi
je 0x51aae1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0xd8]
push ecx
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0xd8]
push edx
call dword [sym.imp.kernel32.dll_lstrlen]
mov edi, eax
mov eax, dword [esp + 0x14]
xor ebp, ebp
xor esi, esi
mov ecx, dword [eax + 4]
mov byte [esp + edi + 0xd8], 0x5c
inc edi
test ecx, ecx
mov dword [esp + 0x28], edi
mov byte [esp + edi + 0xd8], 0
jle 0x51ac19
mov ecx, dword [0x63094c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
push 1
lea edx, [esp + 0xdc]
push edi
push edx
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x1f8], 0
call fcn.0059a7f0
test eax, eax
je 0x51abf3
mov ecx, dword [0x63094c]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x1c]
inc ebp
push edx
push ebp
lea eax, [esp + 0x28]
push str._d__s
push eax
mov byte [esp + 0x1f4], 1
call fcn.0058fa68
mov ecx, dword [esp + 0x30]
add esp, 0x10
mov edi, dword [esp + 0x10]
lea edx, [esi + 0xe110]
push 0
push ecx
push 0xffffffffffffffff
push 0
push edx
lea ecx, [esp + 0x40]
call fcn.00528a40
mov ecx, edi
push edi
push eax
mov eax, dword [esp + 0x20]
inc ecx
mov byte [esp + 0x1ec], 2
mov dword [esp + 0x18], ecx
lea ecx, [eax + 0xdc]
call fcn.005b76f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1e4], 1
call fcn.00528b30
lea ecx, [esp + 0x20]
mov byte [esp + 0x1e4], 0
call fcn.00598032
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1e4], 0xffffffff
call fcn.00598032
mov ecx, dword [esp + 0x14]
inc esi
cmp esi, dword [ecx + 4]
jl 0x51ab2c
test ebp, ebp
jne 0x51ac4b
mov eax, dword [esp + 0x24]
test eax, eax
je 0x51ac4b
test ebx, ebx
je 0x51ac4b
mov esi, dword [ebx + 8]
test byte [esi + 0xc], 1
je 0x51ac4b
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [edx + 0x688]
call fcn.00592d83
test esi, esi
je 0x51ac4b
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov edi, dword [esp + 0x18]
mov eax, dword [0x64ab74]
test eax, eax
je 0x51ade2
mov eax, dword [0x64b1fc]
test eax, eax
jne 0x51ade2
mov eax, dword [edi + 0x68c]
xor ebx, ebx
xor ebp, ebp
test eax, eax
mov dword [esp + 0x10], ebp
je 0x51ade2
jmp 0x51ac85
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov ecx, eax
mov dword [esp + 0x14], edx
mov esi, dword [ecx + 8]
mov ecx, dword [0x64ab74]
mov ecx, dword [ecx + 0x20]
mov edx, dword [esi + 8]
cmp ecx, edx
jne 0x51ad9c
push eax
lea ecx, [edi + 0x688]
call fcn.00592d83
test esi, esi
je 0x51acbd
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 4]
test ebx, ebx
jne 0x51add5
mov eax, dword [0x64ab74]
lea esi, [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x51acf5
mov eax, dword [esi + 0xc]
test eax, eax
je 0x51acf5
mov eax, dword [edi + 0x694]
test eax, eax
je 0x51acf5
mov eax, ebp
lea ecx, [edi + 0xdc]
push eax
inc ebp
call fcn.005b7890
mov esi, dword [esi + 4]
test esi, esi
je 0x51ad76
mov eax, esi
mov esi, dword [esi]
push 1
mov edi, dword [eax + 8]
mov eax, dword [edi + 0x10]
push eax
call fcn.00511a80
mov ecx, eax
call fcn.00511e90
mov ecx, dword [edi + 4]
xor edx, edx
cmp eax, 0xffffffff
mov edi, dword [edi + 0x10]
setne dl
push edx
push ecx
mov ecx, eax
mov ebx, ebp
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push 0
push edi
lea ecx, [esp + 0x40]
call fcn.00528a40
mov edx, dword [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x1ec], 3
lea ecx, [edx + 0xdc]
inc ebp
call fcn.005b76f0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1e4], 0xffffffff
call fcn.00528b30
test esi, esi
jne 0x51acfc
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x51ad95
mov eax, ebp
lea ecx, [edi + 0xdc]
push eax
inc ebp
call fcn.005b7890
mov dword [esp + 0x10], 1
mov ebx, 1
jmp 0x51add5
test byte [esi + 0xc], 1
je 0x51adcd
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x51adc3
push eax
lea ecx, [edi + 0x688]
call fcn.00592d83
test esi, esi
je 0x51adc3
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov dword [esp + 0x10], 1
jmp 0x51add5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
inc ebp
test eax, eax
jne 0x51ac81
mov edx, dword [edi + 0xdc]
lea ebx, [edi + 0xdc]
mov ecx, ebx
call dword [edx + 0x174]
mov esi, eax
test esi, esi
je 0x51ae0a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb0]
test eax, eax
jne 0x51ae13
mov ecx, edi
call fcn.00595041
mov esi, eax
test esi, esi
je 0x51ae24
mov edx, dword [ebx]
push 0
push esi
mov ecx, ebx
call dword [edx + 0xc0]
mov eax, dword [0x64b3a8]
pop ebp
test eax, eax
pop ebx
jne 0x51ae36
mov ecx, edi
call fcn.005951a1
push edi
push eax
call fcn.0051a120
add esp, 8
test eax, eax
jne 0x51ae5b
pop edi
pop esi
mov ecx, dword [esp + 0x1cc]
mov dword fs:[0], ecx
add esp, 0x1d8
ret
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 0xc8]
mov ecx, dword [esp + 0x1d4]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1d8
ret