Function at 0x4047d0
Capabilities:
Check if file exists

Disassembly:
push 0x1a0
mov eax, 0x5803e8
call fcn.0042494b
lea eax, [ebp - 0x88]
push eax
call fcn.004018a1
mov ecx, eax
call fcn.0040ac44
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.0040bf64
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x70]
mov edi, edx
push eax
call fcn.004018a1
mov ecx, eax
call fcn.0040a922
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.0040bf64
add esp, 0x18
cmp edx, ebx
jl 0x4048b1
jg 0x404854
cmp eax, ebx
jbe 0x4048b1
push edx
push eax
call fcn.0040ff59
pop ecx
pop ecx
test eax, eax
je 0x4048b1
call fcn.0040e15e
test al, al
je 0x404bd4
mov eax, dword [0x60ace0]
test eax, eax
je 0x404bd4
cmp dword [eax + 4], 4
jl 0x404bd4
push str.1138
call fcn.0040df4d
push ecx
push ecx
push 0x24
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 0x4049fc
cmp edi, ebx
jg 0x404944
jl 0x4048c3
cmp esi, ebx
ja 0x404944
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x1ac], esp
push ebx
call fcn.0043fcec
pop ecx
push edx
push eax
push esi
call fcn.0040be49
add esp, 0xc
mov byte [ebp - 4], 3
call fcn.004018a1
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040b32a
call fcn.0040e15e
test al, al
je 0x404bd4
mov eax, dword [0x60ace0]
test eax, eax
je 0x404bd4
cmp dword [eax + 4], 4
jl 0x404bd4
push str.1139
call fcn.0040df4d
push ecx
push ecx
push 0x2b
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 0x4049fc
push 0xc
push edi
push esi
call fcn.0040fef3
add esp, 0xc
test eax, eax
jne 0x4049a1
call fcn.0040e15e
test al, al
je 0x404bd4
mov eax, dword [0x60ace0]
test eax, eax
je 0x404bd4
cmp dword [eax + 4], 4
jl 0x404bd4
push str.1140
call fcn.0040df4d
push ecx
push ecx
push 0x32
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 0x4049fc
call fcn.004018a1
mov ecx, eax
call fcn.0040ae78
test al, al
jne 0x404a2e
call fcn.0040e15e
test al, al
je 0x404bd4
mov eax, dword [0x60ace0]
test eax, eax
je 0x404bd4
cmp dword [eax + 4], 4
jl 0x404bd4
push str.1143
call fcn.0040df4d
push ecx
push ecx
push 0x39
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 0x404bd4
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x1ac], esp
push ebx
call fcn.0043fcec
pop ecx
push edx
push eax
push esi
call fcn.0040be49
add esp, 0xc
mov byte [ebp - 4], 7
call fcn.004018a1
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040b32a
lea eax, [ebp - 0x28]
push eax
call fcn.004018a1
mov ecx, eax
call fcn.0040a836
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 0x404bcc
call fcn.0040e15e
test al, al
je 0x404b28
mov eax, dword [0x60ace0]
test eax, eax
je 0x404b28
cmp dword [eax + 4], 4
jl 0x404b28
push str.1141
call fcn.0040df4d
push ecx
push ecx
push 0x48
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.00411af3
add esp, 0x10
mov byte [ebp - 4], 0xb
call fcn.00411c79
cmp eax, 5
jl 0x404b9f
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.00411ff4
push eax
push edi
push esi
call fcn.00411e4f
add esp, 0xc
jmp 0x404bbc
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.00411d4d
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.004248f5
ret 4