Function at 0x69053370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x8ac
mov ebx, dword [edi + 0x1c]
mov dword [ebp - 0x884], ecx
mov ecx, 0x58
mov dword [ebp - 0x87c], eax
mov eax, dword [eax]
cmp dword [ebx], 0x58
cmovbe ecx, dword [ebx]
mov dword [ebp - 0x888], ebx
mov dword [ebp - 0x88c], ecx
cmp ecx, 4
jae 0x69053550
mov esi, ecx
test ecx, ecx
jne 0x69053580
lea esi, [ebp - 0x818]
lea ebx, [ebp - 0x41a]
mov ecx, esi
test edx, edx
je 0x69053908
nop
movzx eax, word [edx]
test ax, ax
je 0x690533e6
add ecx, 2
add edx, 2
mov word [ecx - 2], ax
cmp ecx, ebx
jne 0x690533d0
xor ebx, ebx
mov word [ecx], bx
test byte [0x6907605c], 8
jne 0x690538a0
cmp dword [ebp - 0x884], 0x460
je 0x69053940
mov eax, dword [ebp - 0x87c]
mov edi, dword [sym.imp.ucrtbase.dll_wcsrchr]
mov eax, dword [eax]
mov dword [esp + 4], 0x5c
mov dword [esp], esi
mov dword [ebp - 0x890], eax
call edi
mov dword [ebp - 0x880], eax
test eax, eax
je 0x69053c20
mov dword [esp + 4], 0x2a
mov ebx, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp], esi
call ebx
test eax, eax
je 0x69053970
mov eax, dword [ebp - 0x880]
lea edi, [ebp - 0x418]
lea ebx, [ebp - 0x1a]
lea edx, [eax + 2]
mov eax, edi
lea esi, [esi]
lea esi, [esi]
movzx ecx, word [edx]
test cx, cx
je 0x69053486
add eax, 2
add edx, 2
mov word [eax - 2], cx
cmp eax, ebx
jne 0x69053470
xor ecx, ecx
xor ebx, ebx
mov word [eax], cx
mov eax, dword [ebp - 0x880]
mov word [eax + 2], bx
test byte [0x6907605c], 8
jne 0x69053a98
mov ebx, dword [ebp - 0x890]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x480
mov dword [esp], ebx
call dword [sym.imp.user32.dll_SetDlgItemTextW]
mov eax, dword [ebp - 0x87c]
mov edx, ebx
mov ecx, esi
sub esp, 0xc
mov eax, dword [eax + 0x1c]
call fcn.690530a0
mov eax, dword [ebp - 0x87c]
mov ebx, dword [eax + 0x1c]
xor eax, eax
test byte [ebx + 0x35], 1
je 0x690536cb
mov eax, dword [ebp - 0x87c]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x880], eax
test byte [0x6907605c], 8
je 0x69053530
mov eax, esi
call fcn.69052940
mov dword [esp + 0xc], 0x690796a8
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.FD31_UpdateResult
mov dword [esp + 4], 0x6907605c
mov dword [esp], 3
call fcn.69052bd0
test byte [ebx + 0x35], 1
je 0x690536d8
xor eax, eax
mov word [ebp - 0x418], ax
mov eax, edi
mov edx, 0x200
jmp 0x690535c2
mov edi, dword [ebp - 0x88c]
mov esi, dword [ebp - 0x888]
mov ecx, dword [esi + edi - 4]
mov dword [ebp + edi - 0x874], ecx
lea ecx, [edi - 1]
lea edi, [ebp - 0x870]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x690533b9
movzx ecx, byte [ebx]
mov byte [ebp - 0x870], cl
test esi, 2
je 0x690533b9
movzx ecx, word [ebx + esi - 2]
mov word [ebp + esi - 0x872], cx
jmp 0x690533b9
sub edx, 1
add eax, 2
add esi, 2
mov word [eax - 2], cx
cmp edx, 1
je 0x690535ca
movzx ecx, word [esi]
test cx, cx
jne 0x690535b0
xor edx, edx
mov word [eax], dx
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x690536aa
mov edx, dword [ebx + 0x20]
cmp edx, 1
ja 0x69053602
jmp 0x6905392d
sub edx, 1
add eax, 2
add edi, 2
mov word [eax - 2], cx
cmp edx, 1
je 0x6905360a
movzx ecx, word [edi]
test cx, cx
jne 0x690535f0
xor edi, edi
mov word [eax], di
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathFindFileNameW]
mov edx, dword [ebx + 0x1c]
sub esp, 4
sub eax, edx
sar eax, 1
mov word [ebx + 0x38], ax
mov dword [esp], edx
call dword [sym.imp.shlwapi.dll_PathFindExtensionW]
movzx esi, word [eax]
sub esp, 4
test si, si
je 0x69053645
sub eax, dword [ebx + 0x1c]
sar eax, 1
lea esi, [eax + 1]
mov word [ebx + 0x3a], si
test byte [0x6907605c], 8
jne 0x69053ae0
mov eax, dword [ebp - 0x880]
test eax, eax
je 0x690536aa
mov esi, dword [ebx + 0x20]
mov eax, dword [eax + 0x1c]
test esi, esi
jne 0x69053bc0
mov dword [esp], eax
call dword [sym.imp.shlwapi.dll_PathFindFileNameA]
mov esi, dword [ebp - 0x880]
sub esp, 4
mov edx, dword [esi + 0x1c]
sub eax, edx
mov word [esi + 0x38], ax
mov dword [esp], edx
call dword [sym.imp.shlwapi.dll_PathFindExtensionA]
xor edx, edx
sub esp, 4
cmp byte [eax], 0
jne 0x69053960
mov eax, dword [ebp - 0x880]
mov word [eax + 0x3a], dx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x69053750
mov eax, dword [ebp - 0x87c]
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x69053b28
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edi
mov dword [esp], 0x200
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
sub esp, 8
cmp word [ebp - 0x418], 0
je 0x69053543
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x69053700
mov edx, eax
sub edx, edi
mov ecx, edx
sar ecx, 1
cmp edx, 6
jle 0x690538f8
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x418], ax
lea eax, [edi + edx + 2]
mov edx, 0x1ff
sub edx, ecx
cmp edx, 1
ja 0x690535c2
test edx, edx
je 0x690535cf
jmp 0x690535ca
mov eax, dword [ebp - 0x87c]
mov ebx, dword [eax + 0x1c]
mov ecx, dword [ebx + 0x24]
test ecx, ecx
je 0x69053820
mov esi, dword [eax + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov edi, dword [sym.imp.user32.dll_SendDlgItemMessageW]
mov dword [esp + 8], 0x188
mov dword [esp + 4], 0x460
mov eax, dword [eax]
mov dword [esp], eax
call edi
mov edx, dword [ebx + 0x24]
sub esp, 0x14
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x87c]
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0x189
mov dword [esp + 4], 0x460
mov eax, dword [eax]
mov dword [esp], eax
call edi
sub esp, 0x14
test esi, esi
je 0x69053820
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
test eax, eax
jne 0x69053820
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
mov byte [edx + eax - 1], 0
lea esi, [esi]
mov eax, dword [ebp - 0x87c]
mov edx, dword [eax + 4]
test edx, edx
jne 0x69053b50
mov eax, dword [ebp - 0x888]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x87c], eax
and eax, 0x80200
cmp eax, 0x80200
jne 0x690536c6
mov eax, dword [ebp - 0x888]
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x690536c6
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcsrchr]
cmp word [ebx], 0
mov edx, eax
je 0x69053dc8
mov eax, ebx
add eax, 2
cmp word [eax], 0
jne 0x69053880
sub eax, ebx
add eax, 2
xor esi, esi
xor edi, edi
mov word [ebx + eax], si
mov word [edx], di
jmp 0x690536c6
mov eax, esi
call fcn.69052940
mov dword [esp + 0xc], str.got_filename___s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.FD31_Validate
mov dword [esp + 4], 0x6907605c
mov dword [esp], 3
call fcn.69052bd0
cmp dword [ebp - 0x884], 0x460
jne 0x69053408
mov eax, dword [ebp - 0x87c]
lea edi, [ebp - 0x418]
mov ebx, dword [eax + 0x1c]
jmp 0x690534e9
mov edx, 0x200
sub edx, ecx
jmp 0x69053732
mov dword [esp + 0xc], 0x200
mov dword [esp + 8], esi
mov dword [esp + 4], 0x480
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItemTextW]
sub esp, 0x10
jmp 0x690533eb
test edx, edx
je 0x69053612
jmp 0x6905360a
mov eax, dword [ebp - 0x87c]
lea edi, [ebp - 0x418]
mov ebx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x880], eax
jmp 0x69053530
sub eax, dword [esi + 0x1c]
lea edx, [eax + 1]
jmp 0x690536a0
mov dword [esp + 4], 0x3f
mov dword [esp], esi
call ebx
test eax, eax
jne 0x69053452
mov eax, dword [ebp - 0x87c]
cmp word [ebp - 0x818], 0
mov edi, dword [eax + 0x1c]
je 0x69053cb2
mov ebx, esi
nop
add ebx, 2
cmp word [ebx], 0
jne 0x690539a0
mov eax, dword [ebp - 0x880]
test eax, eax
je 0x69053dc1
mov eax, dword [ebp - 0x880]
mov edx, esi
cmp word [eax + 2], 0
je 0x69053cc5
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x690539d0
xor eax, eax
mov ecx, 0x5c
jmp 0x690539ef
movzx ecx, word [eax + 0x690796a4]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x690539e8
mov edx, dword [ebp - 0x890]
mov ecx, esi
mov eax, edi
call fcn.690530a0
test eax, eax
jne 0x69053a8d
xor ecx, ecx
mov word [ebx], cx
mov ebx, dword [ebp - 0x880]
test ebx, ebx
jne 0x69053ce1
mov eax, dword [ebp - 0x890]
mov dword [esp + 8], esi
lea edi, [ebp - 0x418]
mov dword [esp + 4], 0x480
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetDlgItemTextW]
mov eax, dword [ebp - 0x87c]
sub esp, 0xc
mov ebx, dword [eax + 0x1c]
jmp 0x690534e9
mov esi, dword [ebp - 0x888]
mov eax, dword [ebp - 0x870]
mov dword [esi], eax
mov ebx, dword [ebp - 0x88c]
lea edi, [esi + 4]
and edi, 0xfffffffc
mov eax, dword [ebp + ebx - 0x874]
mov dword [esi + ebx - 4], eax
sub esi, edi
mov eax, esi
lea esi, [ebp - 0x870]
sub esi, eax
add eax, ebx
shr eax, 2
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x690536cb
mov eax, edi
call fcn.69052940
mov ebx, eax
mov eax, esi
call fcn.69052940
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.path_s__tmpstr2_s_n
mov dword [esp + 8], str.FD31_TestPath
mov dword [esp + 4], 0x6907605c
mov dword [esp], 3
call fcn.69052bd0
jmp 0x690534a4
mov eax, dword [ebx + 0x1c]
movzx edi, word [ebx + 0x38]
movzx esi, si
call fcn.69052940
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.file__s__file_offset__d__ext_offset__d_n
mov dword [esp + 8], str.FD31_UpdateResult
mov dword [esp + 4], 0x6907605c
mov dword [esp], 3
call fcn.69052bd0
jmp 0x69053656
mov edi, dword [ebp - 0x87c]
movzx eax, word [ebp + 8]
mov ecx, dword [ebp - 0x884]
mov edx, dword [edi + 8]
mov dword [esp], eax
mov eax, edi
call fcn.69052e10
mov eax, dword [ebp + 0xc]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [eax + 0xc]
mov edi, eax
mov eax, dword [eax + 0x10]
xor ecx, ecx
mov dword [esp], eax
mov eax, edi
call fcn.69052e10
test eax, eax
je 0x69053831
mov esi, dword [ebp - 0x88c]
cmp esi, 4
jae 0x69053a53
test esi, esi
je 0x69053a8d
movzx eax, byte [ebp - 0x870]
mov edi, dword [ebp - 0x888]
and esi, 2
mov byte [edi], al
je 0x69053a8d
mov esi, dword [ebp - 0x88c]
mov edi, dword [ebp - 0x888]
movzx eax, word [ebp + esi - 0x872]
mov word [edi + esi - 2], ax
xor eax, eax
jmp 0x690536cb
mov esi, dword [ebp - 0x880]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [esi + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
test eax, eax
je 0x69053c99
mov eax, dword [esi + 0x1c]
jmp 0x6905366e
mov dword [esp + 4], 0x3a
mov dword [esp], esi
call edi
mov dword [esp], esi
mov ebx, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [ebp - 0x880], eax
mov dword [esp + 4], 0x2a
call ebx
test eax, eax
je 0x69053d7e
mov eax, dword [ebp - 0x880]
test eax, eax
jne 0x69053452
xor eax, eax
lea edi, [ebp - 0x418]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x69053c68
mov eax, dword [ebp - 0x87c]
mov eax, dword [eax + 0x1c]
test byte [eax + 0x35], 1
jne 0x69053497
xor eax, eax
mov word [ebp - 0x818], ax
jmp 0x69053497
mov edi, dword [ebp - 0x880]
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
mov byte [edx + eax - 1], 0
mov eax, dword [edi + 0x1c]
jmp 0x6905366e
mov eax, dword [ebp - 0x880]
mov ebx, esi
cmp word [eax + 2], 0
jne 0x69053dba
mov edx, dword [ebp - 0x890]
mov ecx, esi
mov eax, edi
call fcn.690530a0
test eax, eax
jne 0x69053a8d
xor edi, edi
mov word [ebx], di
mov eax, dword [ebp - 0x880]
xor edx, edx
lea edi, [ebp - 0x418]
mov word [eax], dx
lea ebx, [eax + 2]
mov eax, dword [ebp - 0x890]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x480
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetDlgItemTextW]
mov eax, edi
lea ecx, [ebp - 0x1a]
sub esp, 0xc
lea esi, [esi]
nop
movzx edx, word [ebx]
test dx, dx
je 0x69053d36
add eax, 2
add ebx, 2
mov word [eax - 2], dx
cmp eax, ecx
jne 0x69053d20
xor edx, edx
mov ecx, esi
mov word [eax], dx
mov eax, dword [ebp - 0x87c]
mov edx, dword [ebp - 0x890]
mov eax, dword [eax + 0x1c]
call fcn.690530a0
test eax, eax
je 0x69053a8d
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [edi + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x69053d60
mov eax, dword [ebp - 0x87c]
mov ebx, dword [eax + 0x1c]
jmp 0x690534e9
mov dword [esp + 4], 0x3f
mov dword [esp], esi
call ebx
test eax, eax
jne 0x69053c4e
mov eax, dword [ebp - 0x87c]
cmp word [ebp - 0x818], 0
mov edi, dword [eax + 0x1c]
jne 0x6905399c
mov edx, dword [ebp - 0x880]
test edx, edx
jne 0x69053cb2
mov ebx, esi
mov edx, esi
jmp 0x690539d9
mov edx, esi
jmp 0x690539d0
mov eax, 2
jmp 0x6905388e