Function at 0x40da34
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7a8
mov eax, 0x45d9ac
push ebx
push esi
push edi
mov ebx, 0x45db94
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
call fcn.00455438
call fcn.0041441c
mov dword [ebp - 0x2c], eax
mov byte [0x46b158], 0
push 0x938
push 0
push 0x46b568
call fcn.00452e2c
add esp, 0xc
push 0x46b568
push 0x465fe5
call fcn.0041eca0
push 0x465fe5
call fcn.0041834e
mov dword [0x46b968], eax
push esi
push edi
xor eax, eax
or ecx, 0xffffffff
mov edi, 0x4668cb
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, 0x46b974
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [0x46be78], edi
mov dword [0x46be74], 1
mov eax, dword [0x468f30]
cmp dword [ebp + 8], 0
mov dword [0x46be94], eax
mov edx, dword [0x468f34]
mov dword [0x46be98], edx
je 0x40dbf2
lea ecx, [ebp - 0x430]
push ecx
push 0x465fe5
call fcn.0041eca0
push 0
lea eax, [ebx + 0x1a31]
push eax
lea edx, [ebx + 0x1a26]
push edx
call fcn.0040bb50
sub eax, 1
jb 0x40db26
je 0x40db71
dec eax
je 0x40db97
jmp 0x40dbbb
push 0x46b158
push 0x400
call sub.KERNEL32.dll_GetCurrentDirectoryA
push 0x46b158
call fcn.004080c8
lea ecx, [ebp - 0x430]
push ecx
call fcn.0040809c
push eax
push 0x46b158
call fcn.00452e5c
add esp, 8
push 0x2e
push 0x46b158
call fcn.00453124
add esp, 8
test eax, eax
je 0x40dbbb
mov byte [eax], 0
jmp 0x40dbbb
push 0x400
lea eax, [ebx + 0x1a53]
push eax
push 0x46b158
lea edx, [ebx + 0x1a49]
push edx
lea ecx, [ebx + 0x1a3e]
push ecx
call fcn.0040ba80
jmp 0x40dbbb
push 0x400
lea eax, [ebx + 0x1a71]
push eax
push 0x46b158
lea edx, [ebx + 0x1a6f]
push edx
lea ecx, [ebx + 0x1a54]
push ecx
call fcn.0040ba80
push 0
push 0x40e130
mov eax, dword [0x4656d8]
push eax
lea edx, [ebx + 0x1a72]
push edx
mov ecx, dword [0x466a00]
push ecx
call sub.USER32.dll_DialogBoxParamA
test eax, eax
jne 0x40dc35
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40df4e
cmp dword [ebp + 0x14], 0
jne 0x40dc35
push 0
lea ecx, [ebx + 0x1a89]
push ecx
lea eax, [ebx + 0x1a7e]
push eax
call fcn.0040bb50
test eax, eax
je 0x40dc35
push 0x400
lea edx, [ebx + 0x1aab]
push edx
push 0x46b158
lea ecx, [ebx + 0x1aa1]
push ecx
lea eax, [ebx + 0x1a96]
push eax
call fcn.0040ba80
test esi, esi
jne 0x40dc70
push 0x46b970
push 0x46b96c
push 0x4656f0
call fcn.00423494
test eax, eax
jne 0x40dc62
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40df4e
cmp dword [0x46b970], 0
jne 0x40dc70
mov esi, 1
test esi, esi
je 0x40dd1c
push 0x474
call fcn.00459db0
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x40dcb9
mov word [ebp - 0x18], 0x14
mov edx, dword [ebp - 4]
add edx, 0x450
push edx
call fcn.004262c0
mov ecx, dword [ebp - 4]
add ecx, 0x458
push ecx
call fcn.004262c0
mov word [ebp - 0x18], 8
mov esi, dword [ebp - 4]
jmp 0x40dcbc
mov esi, dword [ebp - 4]
mov dword [0x46b96c], esi
push 0x474
push 0
push esi
call fcn.00452e2c
add esp, 0xc
cmp dword [0x46b968], 1
jne 0x40dce3
lea eax, [ebx + 0x1aac]
jmp 0x40dce9
lea eax, [ebx + 0x1aae]
push edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [0x46b96c]
sub edi, ecx
mov esi, edx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov dword [0x46b970], 1
push 0x465fe5
call fcn.0041ef88
test eax, eax
je 0x40dde1
push 0x46b568
push 0x40e30c
mov eax, dword [0x4656d8]
push eax
lea edx, [ebx + 0x1ab2]
push edx
mov ecx, dword [0x466a00]
push ecx
call sub.USER32.dll_DialogBoxParamA
sub eax, 0xffffffff
je 0x40dd60
sub eax, 2
je 0x40dd71
jmp 0x40dde1
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40df4e
mov ecx, dword [0x46b96c]
push ecx
call fcn.00459d7c
pop ecx
push 0x474
call fcn.00459db0
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x40ddbf
mov word [ebp - 0x18], 0x2c
mov edx, dword [ebp - 8]
add edx, 0x450
push edx
call fcn.004262c0
mov ecx, dword [ebp - 8]
add ecx, 0x458
push ecx
call fcn.004262c0
mov word [ebp - 0x18], 0x20
mov esi, dword [ebp - 8]
jmp 0x40ddc2
mov esi, dword [ebp - 8]
mov dword [0x46b96c], esi
push esi
push edi
mov edi, esi
lea esi, [ebx + 0x1ac3]
mov eax, edi
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [0x46b970], 1
mov byte [ebp - 0x830], 0
cmp byte [0x46b158], 0
je 0x40de50
lea edx, [ebp - 0x830]
push edx
push 0x400
call sub.KERNEL32.dll_GetCurrentDirectoryA
push 0x46b158
call fcn.00408838
push 0x46b158
call fcn.00457f40
pop ecx
inc eax
jne 0x40de50
push 0x46b158
push 0x1f7
call fcn.00408028
push eax
call fcn.00414028
add esp, 8
mov ecx, dword [0x46b96c]
push ecx
call fcn.00459d7c
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40df4e
push 0x46b568
push 0x465fe5
call fcn.0041ecdc
cmp byte [ebp - 0x830], 0
je 0x40de75
lea ecx, [ebp - 0x830]
push ecx
call fcn.00457f40
pop ecx
mov eax, dword [0x46b96c]
push eax
call fcn.00459d7c
pop ecx
push 1
push 0xffffffffffffffff
push 0x100c
push 0x4656f0
call fcn.0041830d
push eax
call sub.USER32.dll_SendMessageA
mov esi, eax
lea eax, [ebx + 0x1ac7]
push eax
push 1
push 0x4656f0
call fcn.004228fc
mov dword [ebp - 0x848], 3
mov dword [ebp - 0x84c], 3
lea edx, [ebp - 0x858]
push edx
push esi
push 0x102b
push 0x4656f0
call fcn.0041830d
push eax
call sub.USER32.dll_SendMessageA
call fcn.0041441c
cmp eax, dword [ebp - 0x2c]
sete cl
and ecx, 1
test edi, edi
mov byte [ebp - 0x2d], cl
je 0x40df41
cmp dword [0x466aa8], 0
jne 0x40df41
push 1
lea eax, [ebx + 0x1ad4]
push eax
lea edx, [ebx + 0x1ac9]
push edx
call fcn.0040bb50
test eax, eax
je 0x40df41
cmp byte [ebp - 0x2d], 0
je 0x40df41
push 0x40
push 0x3a7
call fcn.00408028
push eax
push 0x3a8
call fcn.00408028
push eax
mov ecx, dword [0x4656d8]
push ecx
call sub.USER32.dll_MessageBoxA
mov al, byte [ebp - 0x2d]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10