Function at 0x40638c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417c91
mov eax, dword fs:[0]
push eax
mov eax, 0x382c
call fcn.004147f0
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
jne 0x4063cd
xor eax, eax
jmp 0x406662
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4063c6
xor eax, eax
mov dword [ebp - 0x3818], 7
mov dword [ebp - 0x381c], ebx
mov word [ebp - 0x382c], ax
mov esi, 0xffe
mov dword [ebp - 4], ebx
push esi
mov word [ebp - 0x2810], ax
lea eax, [ebp - 0x280e]
push ebx
push eax
call fcn.00409e10
add esp, 0xc
lea eax, [ebp - 0x2810]
push 0x41bfc4
push eax
call fcn.00409662
xor eax, eax
push esi
mov word [ebp - 0x1810], ax
lea eax, [ebp - 0x180e]
push ebx
push eax
call fcn.00409e10
add esp, 0x14
lea eax, [ebp - 0x1810]
push 0x41bfec
push eax
call fcn.00409662
xor eax, eax
push esi
mov word [ebp - 0x3810], ax
lea eax, [ebp - 0x380e]
push ebx
push eax
call fcn.00409e10
add esp, 0x14
lea eax, [ebp - 0x3810]
push 0x41c024
push eax
call fcn.00409662
pop ecx
pop ecx
mov ecx, edi
call fcn.0040200a
mov edi, eax
mov dword [ebp - 0x3834], edi
cmp edi, ebx
je 0x4065d7
cmp dword [edi + 4], ebx
je 0x4065d7
lea eax, [ebp - 0x1810]
push eax
call fcn.00409df3
pop ecx
lea ecx, [ebp - 0x1810]
lea esi, [ebp - 0x382c]
call fcn.00401a1c
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, eax
je 0x4065f5
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push ebx
push eax
call fcn.00409e10
add esp, 0xc
push dword [esi + 8]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x406544
push 0x3ff
lea eax, [ebp - 0x810]
push eax
push ebx
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
push edi
setne byte [ebp - 0x382d]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x382d], bl
je 0x406544
lea eax, [ebp - 0x810]
push eax
call fcn.00409df3
pop ecx
lea ecx, [ebp - 0x810]
mov edi, eax
push ecx
lea eax, [ebp - 0x382c]
call fcn.00406748
mov edi, 0x41c064
push edi
call fcn.00409df3
pop ecx
push edi
mov edi, eax
lea eax, [ebp - 0x382c]
call fcn.00406748
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00409e10
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push dword [esi + 8]
call fcn.004020b0
pop ecx
pop ecx
test al, al
je 0x4065a9
lea eax, [ebp - 0x810]
push eax
call fcn.00409df3
pop ecx
lea ecx, [ebp - 0x810]
mov edi, eax
push ecx
lea eax, [ebp - 0x382c]
call fcn.00406748
mov edi, 0x41c06c
push edi
call fcn.00409df3
pop ecx
push edi
mov edi, eax
lea eax, [ebp - 0x382c]
call fcn.00406748
mov esi, dword [esi]
mov eax, dword [ebp - 0x3834]
cmp esi, dword [eax]
jne 0x4064c4
mov edi, eax
jmp 0x4065f5
lea eax, [ebp - 0x2810]
push eax
call fcn.00409df3
pop ecx
lea ecx, [ebp - 0x2810]
lea esi, [ebp - 0x382c]
call fcn.00401a1c
cmp dword [ebp - 0x3818], 8
mov eax, dword [ebp - 0x382c]
jae 0x40660a
lea eax, [ebp - 0x382c]
push ebx
push section..text
push ebx
push 0x68
push ebx
mov dword [0x420e24], eax
mov dword [0x420e20], 2
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov eax, dword [0x420e20]
mov dword [ebp - 0x3834], eax
cmp eax, 6
jne 0x406649
cmp edi, ebx
je 0x406649
cmp dword [edi + 4], ebx
je 0x406649
mov ebx, edi
call fcn.0040212c
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x382c]
call fcn.00401a97
mov eax, dword [ebp - 0x3834]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409256
leave
ret