Function at 0x40a710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x459178]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x428], 7
xor ebx, ebx
xor eax, eax
push 2
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x43c], ax
pop esi
cmp dword [edi + 0x78], ebx
je 0x40a765
push ebx
lea ecx, [edi + 0x68]
call fcn.0040c3b7
push 0x5c
pop ecx
cmp word [eax], cx
jne 0x40a765
mov dword [edi + 0x64], esi
cmp dword [edi + 0x64], esi
jne 0x40a7bf
lea edx, [edi + 0x68]
lea ecx, [ebp - 0x454]
call fcn.004038b0
push eax
lea ecx, [ebp - 0x43c]
call fcn.004025d1
push ebx
push 1
lea ecx, [ebp - 0x454]
call fcn.00401df6
cmp dword [ebp - 0x42c], ebx
jne 0x40a912
lea ecx, [ebp - 0x454]
call fcn.004105e0
lea edx, [ebp - 0x43c]
lea ecx, [ebp - 0x454]
call fcn.0040f220
jmp 0x40a904
mov esi, 0x44c7d0
cmp dword [edi + 0x64], ebx
jne 0x40a7fd
push 0x26
lea edx, [ebp - 0x43c]
pop ecx
call fcn.004038a8
mov edx, 0x44c7c8
lea ecx, [ebp - 0x43c]
call fcn.0040cc10
push esi
call fcn.004370ab
pop ecx
push eax
push esi
lea ecx, [ebp - 0x43c]
call fcn.0040294a
jmp 0x40a873
lea eax, [ebp - 0x424]
mov esi, 0x208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40a849
cmp eax, esi
jae 0x40a849
xor eax, eax
mov word [ebp - 0x14], ax
cmp word [ebp - 0x424], ax
je 0x40a834
lea eax, [ebp - 0x424]
push eax
call fcn.004370ab
pop ecx
push eax
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00402102
jmp 0x40a873
lea ecx, [ebp - 0x454]
call fcn.004105e0
lea edx, [ebp - 0x43c]
lea ecx, [ebp - 0x454]
call fcn.0040f220
push ebx
push 1
lea ecx, [ebp - 0x454]
call fcn.00401df6
cmp dword [edi + 0x78], ebx
je 0x40a912
lea eax, [edi + 0x68]
push eax
lea ecx, [ebp - 0x454]
call fcn.004025a9
mov esi, 0x44cdc8
lea ecx, [ebp - 0x454]
mov edx, esi
call fcn.0040cba0
mov edx, 0x44c7c8
lea ecx, [ebp - 0x43c]
call fcn.0040cc10
push 0x44c7d0
call fcn.004370ab
pop ecx
push eax
push 0x44c7d0
lea ecx, [ebp - 0x43c]
call fcn.0040294a
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x43c]
call fcn.004028a8
mov edx, esi
lea ecx, [ebp - 0x43c]
call fcn.0040cc10
mov esi, 0x44c7d0
push esi
call fcn.004370ab
pop ecx
push eax
push esi
lea ecx, [ebp - 0x43c]
call fcn.0040294a
push ebx
push 1
lea ecx, [ebp - 0x454]
call fcn.00401df6
cmp dword [edi + 0x64], 1
lea esi, [edi + 0x2c4]
jne 0x40a927
lea eax, [edi + 0x68]
cmp esi, eax
je 0x40a93c
jmp 0x40a931
lea eax, [ebp - 0x43c]
cmp esi, eax
je 0x40a93c
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00402073
cmp dword [ebp - 0x42c], ebx
je 0x40ab29
cmp byte [edi + 0x80], bl
je 0x40ab29
cmp dword [edi + 0x78], ebx
je 0x40ab29
cmp dword [edi + 0x2d4], ebx
je 0x40ab29
lea ecx, [ebp - 0x4a8]
call fcn.0040584f
push 0x44cda0
lea ecx, [ebp - 0x454]
call fcn.00401b1d
lea eax, [ebp - 0x454]
push eax
push ecx
lea ecx, [ebp - 0x4a8]
call fcn.00405903
push 0
push 1
lea ecx, [ebp - 0x454]
mov bl, al
call fcn.00401df6
test bl, bl
je 0x40ab1c
xor eax, eax
xor ebx, ebx
push 7
mov word [ebp - 0x46c], ax
mov word [ebp - 0x484], ax
lea eax, [ebp - 0x484]
mov dword [ebp - 0x45c], ebx
mov dword [ebp - 0x474], ebx
pop ecx
mov dword [ebp - 0x458], ecx
mov dword [ebp - 0x470], ecx
cmp eax, esi
je 0x40a9f2
push 0xffffffffffffffff
push ebx
push esi
mov ecx, eax
call fcn.00402073
lea ecx, [ebp - 0x484]
call fcn.0040cce0
push 0x25
push 0x3a
pop edx
lea ecx, [ebp - 0x484]
call fcn.0040cb50
add esp, 4
push 0x25
push 0x5c
pop eax
mov edx, eax
call fcn.0040cb50
lea ecx, [ebp - 0x454]
mov dword [esp], 0x44cda0
call fcn.00401b1d
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x454]
push eax
push ecx
lea ecx, [ebp - 0x4a8]
call fcn.0040595c
test al, al
je 0x40aa72
cmp dword [ebp - 0x45c], ebx
je 0x40aa72
lea edx, [ebp - 0x46c]
lea ecx, [ebp - 0x43c]
call fcn.0040c9e0
test al, al
jne 0x40aa72
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x454]
call fcn.00401df6
test bl, bl
je 0x40aafc
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x40aae3
cmp byte [ebp + 8], 0
je 0x40aae3
cmp dword [ebp - 0x458], 8
lea ecx, [ebp - 0x46c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cmovae ecx, dword [ebp - 0x46c]
push ecx
push 0
push 0x143
push ebx
call esi
cmp dword [ebp - 0x428], 8
lea eax, [ebp - 0x43c]
cmovae eax, dword [ebp - 0x43c]
push eax
push 0
push 0x143
push ebx
call esi
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp - 0x46c]
push ebx
push eax
lea ecx, [ebp - 0x43c]
call fcn.00402073
jmp 0x40aafe
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x484]
call fcn.00401df6
push ebx
push 1
lea ecx, [ebp - 0x46c]
call fcn.00401df6
jmp 0x40ab1e
xor ebx, ebx
lea ecx, [ebp - 0x4a8]
call fcn.004058f3
lea ecx, [ebp - 0x454]
lea edx, [edi + 0x18]
cmp dword [edi + 0x28], ebx
jne 0x40ab3d
lea edx, [ebp - 0x43c]
call fcn.004038b0
push eax
lea ecx, [edi + 0x240]
call fcn.004025d1
push ebx
push 1
lea ecx, [ebp - 0x454]
call fcn.00401df6
push ebx
push 1
lea ecx, [ebp - 0x43c]
call fcn.00401df6
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436362
mov esp, ebp
pop ebp
ret 4