Function at 0x40487a
Capabilities:
Check if file exists
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push edi
push 0xf0
push dword [ebx + 0x964]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x4048b6
mov cl, 1
mov eax, ebx
call fcn.004067e2
jmp 0x404936
push 4
call fcn.0040809d
pop ecx
mov dword [ebp - 0x4e4], eax
xor eax, eax
push 0xc6
mov word [ebp - 0x2d8], ax
lea eax, [ebp - 0x2d6]
push edi
push eax
call fcn.0043e180
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
add esp, 0xc
push 0x64
lea eax, [ebp - 0x2d8]
push eax
push dword [ebx + 0x7f0]
call esi
cmp dword [ebx + 0x488], 1
je 0x40492f
push dword [ebp - 0x4e4]
lea eax, [ebp - 0x2d8]
push eax
call fcn.0043f6e9
pop ecx
pop ecx
test eax, eax
je 0x40492f
cmp dword [ebx + 0x488], 7
jne 0x404946
call fcn.00411719
mov ecx, eax
call fcn.004118ad
mov edi, ebx
call fcn.00404bca
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043b103
leave
ret
mov eax, dword [ebx + 0x474]
cmp eax, edi
je 0x40496c
jle 0x404936
cmp eax, 2
jle 0x40495e
cmp eax, 3
jne 0x404936
jmp 0x40492f
push 6
call fcn.0040809d
pop ecx
push eax
jmp 0x404b30
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.0043e180
add esp, 0xc
push 0x3f7
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, 0x103
push edi
lea ecx, [ebp - 0x210]
push ecx
push eax
call esi
lea esi, [ebp - 0x210]
call fcn.00403e6d
call fcn.00403e8f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x4e0], ax
lea eax, [ebp - 0x4de]
push eax
call fcn.0043e180
add esp, 0xc
call fcn.00411719
push dword [eax + 0x20]
mov esi, 0x475100
push esi
lea eax, [ebp - 0x4e0]
push edi
push eax
call fcn.0043f3d3
lea eax, [ebp - 0x4e0]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0043f6e9
add esp, 0x18
test eax, eax
jne 0x404a20
cmp dword [ebx + 0x488], 3
jne 0x404a20
mov ecx, ebx
call fcn.00404702
jmp 0x404936
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.0043f77c
pop ecx
pop ecx
mov edi, str.360DrvMgr
test eax, eax
je 0x404a49
add eax, 2
push edi
push eax
call fcn.0043f6e9
pop ecx
pop ecx
test eax, eax
je 0x404a6a
lea eax, [ebp - 0x210]
push 0x474fcc
push eax
call fcn.0043e957
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0043e957
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x4e4], eax
test eax, eax
jne 0x404aa7
lea eax, [ebp - 0x210]
push eax
call fcn.004166c6
pop ecx
test eax, eax
jne 0x404aa7
push 0xc
call fcn.0040809d
pop ecx
push eax
mov esi, ebx
call fcn.00404616
jmp 0x404936
lea edi, [ebp - 0x210]
call fcn.00416768
test al, al
jne 0x404ae6
cmp dword [ebp - 0x4e4], 0
jne 0x404ae2
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404ae2
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x404ae2
mov eax, edi
push eax
call fcn.0041680f
pop ecx
push 0xe
jmp 0x404a94
lea eax, [ebp - 0x4e0]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0043f7a8
xor ecx, ecx
test eax, eax
setne cl
lea eax, [ebp - 0x4e0]
push eax
push esi
lea eax, [ebx + 0x60]
push 0x103
push eax
inc ecx
mov dword [ebx + 0x5c], ecx
call fcn.0043f3d3
lea eax, [ebp - 0x210]
add esp, 0x18
push eax
call fcn.00411719
call fcn.00412825
push 0
mov edi, ebx
call fcn.00403cbd
jmp 0x404936