Function at 0x422145
Capabilities:
Get common file path

Disassembly:
push 0xb4
mov eax, 0x42b972
call fcn.00428a3d
mov ebx, ecx
push 0xc8
push dword [ebx]
call dword [sym.imp.USER32.dll_LoadMenuW]
push eax
push dword [ebx + 4]
mov dword [ebx + 0x3cc], eax
call dword [sym.imp.USER32.dll_SetMenu]
push 0xca
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xc9
mov dword [ebx + 0x14], eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebx + 0x10], eax
xor ecx, ecx
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x26
push eax
push ecx
push 0x1061
push dword [ebx + 0x14]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], 0x40288c
mov dword [ebp - 0xa4], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xd2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xcc
mov dword [ebx + 0x378], eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xce
mov dword [ebx + 0x37c], eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xd0
mov dword [ebx + 0x380], eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xd4
mov dword [ebx + 0x384], eax
lea esi, [ebx + 0x388]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 3
mov dword [esi], eax
lea edi, [ebx + 0x38c]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 5
mov dword [edi], eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 4
mov dword [ebx + 0x390], eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebx + 0x394], eax
lea eax, [ebx + 0x16c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebx + 8]
call dword [sym.imp.MFC42u.dll_CString::Empty]
push 0x420
xor eax, eax
push eax
push 0x1036
push dword [ebx + 0x14]
mov dword [ebx + 0x64], eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebx + 0x5c]
call dword [sym.imp.MFC42u.dll_CString::Empty]
lea ecx, [ebx + 0x60]
call dword [sym.imp.MFC42u.dll_CString::Empty]
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], eax
push eax
push eax
push eax
push eax
lea eax, [ebx + 0x34]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor eax, eax
mov dword [ebx + 0x18], 0x21
inc eax
push eax
push 0
push 0x445
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x374], eax
push dword [ebx + 0x37c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x459
push dword [ebx + 0x37c]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 0x390]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x40]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x50]
push eax
push dword [ebx + 0x394]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x20]
sub eax, dword [ebp - 0x30]
cmp ecx, eax
jle 0x422350
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x30]
jmp 0x422356
lea esi, [ebp - 0x30]
lea edi, [ebp - 0x20]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x50]
sub eax, dword [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp eax, ecx
jle 0x422372
lea esi, [ebp - 0x40]
lea edi, [ebp - 0x50]
jmp 0x422378
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebx + 0x388]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004272ec
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebx + 0x390]
call fcn.004272ec
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebx + 0x38c]
call fcn.004272ec
push ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebx + 0x394]
call fcn.004272ec
xor edi, edi
lea ecx, [ebp - 0x90]
push 0x40288c
mov dword [ebx + 0x398], edi
mov dword [ebx + 0x39c], edi
mov dword [ebx + 0x3a0], edi
call dword [sym.imp.MFC42u.dll_CString::CString_1]
push eax
lea ecx, [ebx + 0x3ac]
mov dword [ebp - 4], edi
call dword [0x4362a4]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call dword [sym.imp.MFC42u.dll_CString::CString]
mov ecx, ebx
mov dword [ebx + 0x3b0], edi
mov dword [ebx + 0x3a4], edi
mov dword [ebx + 0x3a8], edi
call fcn.0042299a
mov ecx, ebx
call fcn.00422a99
lea esi, [ebx + 0x3b8]
mov dword [ebx + 0x168], edi
push 0x40288c
mov ecx, esi
call dword [0x4362a8]
lea ecx, [ebx + 0x3bc]
push 0x40288c
call dword [0x4362a8]
push 0x40288c
lea ecx, [ebx + 0x3c0]
call dword [0x4362a8]
push 0x24
mov dword [ebx + 0x3c8], edi
mov dword [ebx + 0x3c4], edi
mov dword [ebx + 0x1c], edi
call dword [sym.imp.MFC42u.dll_operatornew]
pop ecx
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x42248e
mov ecx, eax
call fcn.00414eab
mov edi, eax
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4224cf
mov eax, dword [edi]
push dword [ebx + 4]
push 0x40288c
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x436604]
mov ecx, edi
call esi
test eax, eax
jns 0x4224c7
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x436604]
mov ecx, edi
call esi
xor edi, edi
lea esi, [ebx + 0x3b8]
jmp 0x4224d1
xor edi, edi
mov dword [ebx + 0x1c], edi
lea ecx, [ebx + 0x3bc]
mov eax, dword [ecx]
xor edi, edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x28], edi
cmp dword [eax - 8], edi
je 0x4224f2
push ecx
mov ecx, esi
call dword [0x4362a4]
mov edx, dword [esi]
cmp dword [edx - 8], edi
je 0x422532
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4224fe
sub ecx, esi
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x422532
cmp word [edx + eax*2], 0x2e
je 0x422520
sub eax, 1
jns 0x422514
test eax, eax
js 0x422532
inc eax
mov ecx, ebx
push eax
push edx
call fcn.00422c26
test eax, eax
jns 0x422541
cmp dword [ebx + 0x1c], edi
je 0x422541
push dword [ebx + 0x1c]
mov ecx, ebx
call fcn.00423da0
push 0xd5
push dword [0x4339e0]
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [ebx + 0x3d0], eax
lea edi, [ebp - 0x60]
xor eax, eax
xor esi, esi
stosd dword es:[edi], eax
push 0x32
pop ecx
mov dword [ebp - 0x88], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x74], esi
stosd dword es:[edi], eax
call fcn.00412880
xor ecx, ecx
mov dword [ebp - 0x84], esi
push ecx
mov edi, eax
mov dword [ebp - 0x8c], 0x2c
lea eax, [ebp - 0x60]
mov esi, 0x258
push eax
push ecx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x4225cf
lea eax, [edi + 0x258]
cmp dword [ebp - 0x58], eax
jle 0x4225b8
mov esi, dword [ebp - 0x58]
sub esi, edi
lea eax, [edi + 0x1c2]
mov ecx, 0x1c2
cmp dword [ebp - 0x54], eax
jle 0x4225d4
mov ecx, dword [ebp - 0x54]
sub ecx, edi
jmp 0x4225d4
mov ecx, 0x1c2
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x70], edi
push eax
push dword [ebx + 4]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], ecx
call dword [sym.imp.USER32.dll_SetWindowPlacement]
push 0x2712
push dword [ebx]
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, eax
test esi, esi
je 0x422621
push esi
push 0xffffffffffffffde
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetClassLongW]
push esi
xor eax, eax
push eax
push 0x80
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
call fcn.004289da
ret 0x10