Function at 0x40a244
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 - 0x440], 7
xor ebx, ebx
xor eax, eax
push 2
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x444], ebx
mov word [ebp - 0x454], ax
pop esi
cmp dword [edi + 0x78], ebx
je 0x40a299
push ebx
lea ecx, [edi + 0x68]
call fcn.0040bef6
push 0x5c
pop ecx
cmp word [eax], cx
jne 0x40a299
mov dword [edi + 0x64], esi
cmp dword [edi + 0x64], esi
jne 0x40a2f3
lea edx, [edi + 0x68]
lea ecx, [ebp - 0x43c]
call fcn.0040331e
push eax
lea ecx, [ebp - 0x454]
call fcn.00401f36
push ebx
push 1
lea ecx, [ebp - 0x43c]
call fcn.004017f1
cmp dword [ebp - 0x444], ebx
jne 0x40a42f
lea ecx, [ebp - 0x43c]
call fcn.0040fc80
lea edx, [ebp - 0x454]
lea ecx, [ebp - 0x43c]
call fcn.0040ec00
jmp 0x40a421
mov esi, 0x44c7d4
cmp dword [edi + 0x64], ebx
jne 0x40a331
push 0x26
lea edx, [ebp - 0x454]
pop ecx
call fcn.00403316
mov edx, 0x44c798
lea ecx, [ebp - 0x454]
call fcn.0040c720
push esi
call fcn.0043674b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x454]
call fcn.004022af
jmp 0x40a390
lea eax, [ebp - 0x424]
mov esi, 0x208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40a366
cmp eax, esi
jae 0x40a366
xor eax, eax
lea ecx, [ebp - 0x454]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x424]
push eax
call fcn.004016c8
jmp 0x40a390
lea ecx, [ebp - 0x43c]
call fcn.0040fc80
lea edx, [ebp - 0x454]
lea ecx, [ebp - 0x43c]
call fcn.0040ec00
push ebx
push 1
lea ecx, [ebp - 0x43c]
call fcn.004017f1
cmp dword [edi + 0x78], ebx
je 0x40a42f
lea eax, [edi + 0x68]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401f0e
mov esi, 0x44cd98
lea ecx, [ebp - 0x43c]
mov edx, esi
call fcn.0040c6b0
mov edx, 0x44c798
lea ecx, [ebp - 0x454]
call fcn.0040c720
push 0x44c7d4
call fcn.0043674b
pop ecx
push eax
push 0x44c7d4
lea ecx, [ebp - 0x454]
call fcn.004022af
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x454]
call fcn.0040220d
mov edx, esi
lea ecx, [ebp - 0x454]
call fcn.0040c720
mov esi, 0x44c7d4
push esi
call fcn.0043674b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x454]
call fcn.004022af
push ebx
push 1
lea ecx, [ebp - 0x43c]
call fcn.004017f1
cmp dword [edi + 0x64], 1
lea esi, [edi + 0x2c4]
jne 0x40a444
lea eax, [edi + 0x68]
cmp esi, eax
je 0x40a459
jmp 0x40a44e
lea eax, [ebp - 0x454]
cmp esi, eax
je 0x40a459
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.00401a6e
cmp dword [ebp - 0x444], ebx
je 0x40a678
cmp byte [edi + 0x80], bl
je 0x40a678
cmp dword [edi + 0x78], ebx
je 0x40a678
cmp dword [edi + 0x2d4], ebx
je 0x40a678
lea ecx, [ebp - 0x4a8]
call fcn.004053a3
xor eax, eax
mov dword [ebp - 0x428], 7
push 0x44cd70
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x43c], ax
call fcn.004016c8
lea eax, [ebp - 0x43c]
push eax
push ecx
lea ecx, [ebp - 0x4a8]
call fcn.00405457
push 0
push 1
lea ecx, [ebp - 0x43c]
mov bl, al
call fcn.004017f1
test bl, bl
je 0x40a66b
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 0x40a528
push 0xffffffffffffffff
push ebx
push esi
mov ecx, eax
call fcn.00401a6e
lea ecx, [ebp - 0x484]
call fcn.0040c810
push 0x25
push 0x3a
pop edx
lea ecx, [ebp - 0x484]
call fcn.0040c660
add esp, 4
push 0x25
push 0x5c
pop eax
mov edx, eax
call fcn.0040c660
xor eax, eax
mov dword [ebp - 0x428], 7
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x43c], ax
mov dword [esp], 0x44cd70
call fcn.004016c8
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x43c]
push eax
push ecx
lea ecx, [ebp - 0x4a8]
call fcn.004054b0
test al, al
je 0x40a5c1
cmp dword [ebp - 0x45c], ebx
je 0x40a5c1
lea edx, [ebp - 0x46c]
lea ecx, [ebp - 0x454]
call fcn.0040c4f0
test al, al
jne 0x40a5c1
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x43c]
call fcn.004017f1
test bl, bl
je 0x40a64b
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x40a632
cmp byte [ebp + 8], 0
je 0x40a632
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 - 0x440], 8
lea eax, [ebp - 0x454]
cmovae eax, dword [ebp - 0x454]
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 - 0x454]
call fcn.00401a6e
jmp 0x40a64d
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x484]
call fcn.004017f1
push ebx
push 1
lea ecx, [ebp - 0x46c]
call fcn.004017f1
jmp 0x40a66d
xor ebx, ebx
lea ecx, [ebp - 0x4a8]
call fcn.00405447
lea ecx, [ebp - 0x43c]
lea edx, [edi + 0x18]
cmp dword [edi + 0x28], ebx
jne 0x40a68c
lea edx, [ebp - 0x454]
call fcn.0040331e
push eax
lea ecx, [edi + 0x240]
call fcn.00401f36
push ebx
push 1
lea ecx, [ebp - 0x43c]
call fcn.004017f1
push ebx
push 1
lea ecx, [ebp - 0x454]
call fcn.004017f1
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435a0a
mov esp, ebp
pop ebp
ret 4