Function at 0x404881
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 0x4048bd
mov cl, 1
mov eax, ebx
call fcn.0040698f
jmp 0x404b60
push 4
call fcn.0040836d
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.0043e330
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 0x404b47
push dword [ebp - 0x4e4]
lea eax, [ebp - 0x2d8]
push eax
call fcn.0043f899
pop ecx
pop ecx
test eax, eax
je 0x404b47
cmp dword [ebx + 0x488], 7
jne 0x404949
call fcn.00411936
mov ecx, eax
call fcn.00411aca
mov dword [ebx + 0xa20], edi
jmp 0x404b59
mov eax, dword [ebx + 0x474]
cmp eax, edi
je 0x40497a
jle 0x404b60
cmp eax, 2
jle 0x40496c
cmp eax, 3
jne 0x404b60
jmp 0x404b59
push 6
call fcn.0040836d
pop ecx
push eax
jmp 0x404b3e
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.0043e330
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.0043e330
add esp, 0xc
call fcn.00411936
push dword [eax + 0x20]
mov esi, 0x475100
push esi
lea eax, [ebp - 0x4e0]
push edi
push eax
call fcn.0043f583
lea eax, [ebp - 0x4e0]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0043f899
add esp, 0x18
test eax, eax
jne 0x404a2e
cmp dword [ebx + 0x488], 3
jne 0x404a2e
mov ecx, ebx
call fcn.00404709
jmp 0x404b60
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.0043f92c
pop ecx
pop ecx
mov edi, str.360DrvMgr
test eax, eax
je 0x404a57
add eax, 2
push edi
push eax
call fcn.0043f899
pop ecx
pop ecx
test eax, eax
je 0x404a78
lea eax, [ebp - 0x210]
push 0x474fcc
push eax
call fcn.0043eb07
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0043eb07
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 0x404ab5
lea eax, [ebp - 0x210]
push eax
call fcn.004168eb
pop ecx
test eax, eax
jne 0x404ab5
push 0xc
call fcn.0040836d
pop ecx
push eax
mov esi, ebx
call fcn.0040461d
jmp 0x404b60
lea edi, [ebp - 0x210]
call fcn.0041698d
test al, al
jne 0x404af4
cmp dword [ebp - 0x4e4], 0
jne 0x404af0
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404af0
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x404af0
mov eax, edi
push eax
call fcn.00416a34
pop ecx
push 0xe
jmp 0x404aa2
lea eax, [ebp - 0x4e0]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0043f958
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.0043f583
lea eax, [ebp - 0x210]
add esp, 0x18
push eax
call fcn.00411936
call fcn.00412a42
push 0
mov edi, ebx
call fcn.00403cbd
jmp 0x404b60
cmp dword [ebx + 0xd54], edi
jne 0x404b59
mov dword [ebx + 0xa20], 4
mov edi, ebx
call fcn.00404c0a
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043b2b9
leave
ret