Function at 0x40a23d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x456178]
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 0x40a292
push ebx
lea ecx, [edi + 0x68]
call fcn.0040bf0f
push 0x5c
pop ecx
cmp word [eax], cx
jne 0x40a292
mov dword [edi + 0x64], esi
cmp dword [edi + 0x64], esi
jne 0x40a2ec
lea edx, [edi + 0x68]
lea ecx, [ebp - 0x43c]
call fcn.0040330a
push eax
lea ecx, [ebp - 0x454]
call fcn.00401e84
push ebx
push 1
lea ecx, [ebp - 0x43c]
call fcn.00401751
cmp dword [ebp - 0x444], ebx
jne 0x40a428
lea ecx, [ebp - 0x43c]
call fcn.0040f150
lea edx, [ebp - 0x454]
lea ecx, [ebp - 0x43c]
call fcn.0040eb70
jmp 0x40a41a
mov esi, 0x4497dc
cmp dword [edi + 0x64], ebx
jne 0x40a32a
push 0x26
lea edx, [ebp - 0x454]
pop ecx
call fcn.00403252
mov edx, 0x4497a0
lea ecx, [ebp - 0x454]
call fcn.0040c740
push esi
call fcn.0043413b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x454]
call fcn.004021eb
jmp 0x40a389
lea eax, [ebp - 0x424]
mov esi, 0x208
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40a35f
cmp eax, esi
jae 0x40a35f
xor eax, eax
lea ecx, [ebp - 0x454]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x424]
push eax
call fcn.00401628
jmp 0x40a389
lea ecx, [ebp - 0x43c]
call fcn.0040f150
lea edx, [ebp - 0x454]
lea ecx, [ebp - 0x43c]
call fcn.0040eb70
push ebx
push 1
lea ecx, [ebp - 0x43c]
call fcn.00401751
cmp dword [edi + 0x78], ebx
je 0x40a428
lea eax, [edi + 0x68]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00401e5c
mov esi, 0x449da8
lea ecx, [ebp - 0x43c]
mov edx, esi
call fcn.0040c6d0
mov edx, 0x4497a0
lea ecx, [ebp - 0x454]
call fcn.0040c740
push 0x4497dc
call fcn.0043413b
pop ecx
push eax
push 0x4497dc
lea ecx, [ebp - 0x454]
call fcn.004021eb
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x454]
call fcn.00402149
mov edx, esi
lea ecx, [ebp - 0x454]
call fcn.0040c740
mov esi, 0x4497dc
push esi
call fcn.0043413b
pop ecx
push eax
push esi
lea ecx, [ebp - 0x454]
call fcn.004021eb
push ebx
push 1
lea ecx, [ebp - 0x43c]
call fcn.00401751
cmp dword [edi + 0x64], 1
lea esi, [edi + 0x2c4]
jne 0x40a43d
lea eax, [edi + 0x68]
cmp esi, eax
je 0x40a452
jmp 0x40a447
lea eax, [ebp - 0x454]
cmp esi, eax
je 0x40a452
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.004019ce
cmp dword [ebp - 0x444], ebx
je 0x40a671
cmp byte [edi + 0x80], bl
je 0x40a671
cmp dword [edi + 0x78], ebx
je 0x40a671
cmp dword [edi + 0x2d4], ebx
je 0x40a671
lea ecx, [ebp - 0x4a8]
call fcn.0040538f
xor eax, eax
mov dword [ebp - 0x428], 7
push 0x449d80
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x42c], ebx
mov word [ebp - 0x43c], ax
call fcn.00401628
lea eax, [ebp - 0x43c]
push eax
push ecx
lea ecx, [ebp - 0x4a8]
call fcn.00405443
push 0
push 1
lea ecx, [ebp - 0x43c]
mov bl, al
call fcn.00401751
test bl, bl
je 0x40a664
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 0x40a521
push 0xffffffffffffffff
push ebx
push esi
mov ecx, eax
call fcn.004019ce
lea ecx, [ebp - 0x484]
call fcn.0040c830
push 0x25
push 0x3a
pop edx
lea ecx, [ebp - 0x484]
call fcn.0040c680
add esp, 4
push 0x25
push 0x5c
pop eax
mov edx, eax
call fcn.0040c680
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], 0x449d80
call fcn.00401628
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.0040549c
test al, al
je 0x40a5ba
cmp dword [ebp - 0x45c], ebx
je 0x40a5ba
lea edx, [ebp - 0x46c]
lea ecx, [ebp - 0x454]
call fcn.0040c510
test al, al
jne 0x40a5ba
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x43c]
call fcn.00401751
test bl, bl
je 0x40a644
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x40a62b
cmp byte [ebp + 8], 0
je 0x40a62b
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.004019ce
jmp 0x40a646
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x484]
call fcn.00401751
push ebx
push 1
lea ecx, [ebp - 0x46c]
call fcn.00401751
jmp 0x40a666
xor ebx, ebx
lea ecx, [ebp - 0x4a8]
call fcn.00405433
lea ecx, [ebp - 0x43c]
lea edx, [edi + 0x18]
cmp dword [edi + 0x28], ebx
jne 0x40a685
lea edx, [ebp - 0x454]
call fcn.0040330a
push eax
lea ecx, [edi + 0x240]
call fcn.00401e84
push ebx
push 1
lea ecx, [ebp - 0x43c]
call fcn.00401751
push ebx
push 1
lea ecx, [ebp - 0x454]
call fcn.00401751
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004333fa
mov esp, ebp
pop ebp
ret 4