Function at 0x4047d4
Capabilities:
Check if file exists

Disassembly:
push 0x1a0
mov eax, 0x580063
call fcn.004245be
lea eax, [ebp - 0x88]
push eax
call fcn.004018a1
mov ecx, eax
call fcn.0040abd3
sub esp, 0x18
lea eax, [ebp - 0x88]
mov ecx, esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404362
call fcn.0040bef3
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x70]
mov edi, edx
push eax
call fcn.004018a1
mov ecx, eax
call fcn.0040a8b1
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
lea eax, [ebp - 0x70]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00404362
call fcn.0040bef3
add esp, 0x18
cmp edx, ebx
jl 0x4048b5
jg 0x404858
cmp eax, ebx
jbe 0x4048b5
push edx
push eax
call fcn.0040fee8
pop ecx
pop ecx
test eax, eax
je 0x4048b5
call fcn.0040e0ed
test al, al
je 0x404bd8
mov eax, dword [0x60ace0]
test eax, eax
je 0x404bd8
cmp dword [eax + 4], 4
jl 0x404bd8
push str.1138
call fcn.0040dedc
push ecx
push ecx
push 0x23
push str.CDoServiceEngine::CheckUpdate
push ecx
lea ecx, [ebp - 0x1a8]
mov edi, eax
call fcn.004040e0
mov esi, eax
mov byte [ebp - 4], 2
jmp 0x404a00
cmp edi, ebx
jg 0x404948
jl 0x4048c7
cmp esi, ebx
ja 0x404948
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x1ac], esp
push ebx
call fcn.0043f95c
pop ecx
push edx
push eax
push esi
call fcn.0040bdd8
add esp, 0xc
mov byte [ebp - 4], 3
call fcn.004018a1
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040b2b9
call fcn.0040e0ed
test al, al
je 0x404bd8
mov eax, dword [0x60ace0]
test eax, eax
je 0x404bd8
cmp dword [eax + 4], 4
jl 0x404bd8
push str.1139
call fcn.0040dedc
push ecx
push ecx
push 0x2a
push str.CDoServiceEngine::CheckUpdate
push ecx
lea ecx, [ebp - 0x1a8]
mov edi, eax
call fcn.004040e0
mov esi, eax
mov byte [ebp - 4], 4
jmp 0x404a00
push 0xc
push edi
push esi
call fcn.0040fe82
add esp, 0xc
test eax, eax
jne 0x4049a5
call fcn.0040e0ed
test al, al
je 0x404bd8
mov eax, dword [0x60ace0]
test eax, eax
je 0x404bd8
cmp dword [eax + 4], 4
jl 0x404bd8
push str.1140
call fcn.0040dedc
push ecx
push ecx
push 0x31
push str.CDoServiceEngine::CheckUpdate
push ecx
lea ecx, [ebp - 0x1a8]
mov edi, eax
call fcn.004040e0
mov esi, eax
mov byte [ebp - 4], 5
jmp 0x404a00
call fcn.004018a1
mov ecx, eax
call fcn.0040ae07
test al, al
jne 0x404a32
call fcn.0040e0ed
test al, al
je 0x404bd8
mov eax, dword [0x60ace0]
test eax, eax
je 0x404bd8
cmp dword [eax + 4], 4
jl 0x404bd8
push str.1143
call fcn.0040dedc
push ecx
push ecx
push 0x38
push str.CDoServiceEngine::CheckUpdate
push ecx
lea ecx, [ebp - 0x1a8]
mov edi, eax
call fcn.004040e0
mov esi, eax
mov byte [ebp - 4], 6
test edi, edi
mov ecx, 0x5f0c84
cmovne ecx, edi
push ecx
lea ecx, [esi + 0x30]
push ecx
call fcn.00401953
pop ecx
pop ecx
mov ecx, dword [0x60ace0]
push esi
call fcn.004041c0
lea ecx, [ebp - 0x1a8]
call fcn.0040245b
jmp 0x404bd8
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x1ac], esp
push ebx
call fcn.0043f95c
pop ecx
push edx
push eax
push esi
call fcn.0040bdd8
add esp, 0xc
mov byte [ebp - 4], 7
call fcn.004018a1
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040b2b9
lea eax, [ebp - 0x28]
push eax
call fcn.004018a1
mov ecx, eax
call fcn.0040a7c5
push 8
pop ebx
push str.WinUpdate.exe
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.004023fb
cmp dword [ebp - 0x14], ebx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404bd0
call fcn.0040e0ed
test al, al
je 0x404b2c
mov eax, dword [0x60ace0]
test eax, eax
je 0x404b2c
cmp dword [eax + 4], 4
jl 0x404b2c
push str.1141
call fcn.0040dedc
push ecx
push ecx
push 0x47
push str.CDoServiceEngine::CheckUpdate
push ecx
lea ecx, [ebp - 0x1a8]
mov esi, eax
call fcn.004040e0
mov edi, eax
test esi, esi
mov byte [ebp - 4], 9
mov ecx, 0x5f0c84
cmovne ecx, esi
push ecx
lea ecx, [edi + 0x30]
push ecx
call fcn.00401953
pop ecx
pop ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040191d
mov esi, eax
mov edx, 0x5f0e38
lea ecx, [esi + 0x30]
call fcn.0040210d
mov ecx, dword [0x60ace0]
push esi
call fcn.004041c0
lea ecx, [ebp - 0x1a8]
mov byte [ebp - 4], bl
call fcn.0040245b
and dword [ebp - 0x48], 0
lea ecx, [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x44], 7
push str._8882471530
mov word [ebp - 0x58], ax
call fcn.004042ec
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], ebx
push 0x5f0c20
cmovae eax, dword [ebp - 0x58]
push 0x5f0c34
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004117c8
add esp, 0x10
mov byte [ebp - 4], 0xb
call fcn.0041194e
cmp eax, 5
jl 0x404ba3
cmp dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x40]
lea esi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x40]
cmp dword [ebp - 0x14], ebx
cmovae esi, dword [ebp - 0x28]
call fcn.00411cc9
push eax
push edi
push esi
call fcn.00411b24
add esp, 0xc
jmp 0x404bc0
cmp dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], ebx
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00411a22
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00404683
lea ecx, [ebp - 0x58]
call fcn.00404683
lea ecx, [ebp - 0x28]
call fcn.00404683
lea ecx, [ebp - 0x70]
call fcn.00404683
lea ecx, [ebp - 0x88]
call fcn.00404683
call fcn.00424568
ret 4