Function at 0x40bb30
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x413136
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x534
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
push 0x20
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push str.1.0.0
push eax
mov dword [esp + 0x558], ebx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea ecx, [esp + 0x24]
mov ebp, 1
push ecx
push 0x41f290
push ebp
call fcn.00404a50
lea edi, [esi + 0xc4]
add esp, 0x18
mov ecx, edi
call fcn.0040a570
cmp eax, ebx
jne 0x40bc1f
lea edx, [esp + 0x14]
mov ecx, edi
push edx
call fcn.0040af10
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x41f270
push ecx
mov byte [esp + 0x558], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x54c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push 0x10
push 0x41d790
push edx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x10]
mov dword [esi + 0x3dc], ebp
mov dword [esp + 0x54c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40be85
mov al, byte [esi + 0x290]
cmp al, bl
jne 0x40bc4e
cmp dword [esp + 0x554], ebx
je 0x40be6f
push 0x10
push 0x41f268
push 0x41f250
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40be6f
cmp al, 2
jne 0x40bc70
push 0x10
push 0x41f244
push 0x41f230
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esi + 0x3dc], ebp
jmp 0x40be6f
cmp al, 1
jne 0x40be6f
cmp dword [0x420488], ebp
jne 0x40bc93
push 0x41f214
push ebp
call fcn.00404a50
add esp, 8
jmp 0x40be6f
lea eax, [esi + 0x218]
lea ecx, [esp + 0x10]
push eax
push 0x41f1f4
push ecx
mov dword [esi + 0x3dc], ebp
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0xc
push 0x24
push 0x41f1e8
push edx
push ebx
call ebp
cmp eax, 6
jne 0x40be6a
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x13d]
mov byte [esp + 0x13c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x345]
mov byte [esp + 0x344], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x241]
mov byte [esp + 0x240], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
cmp eax, ebx
je 0x40bd69
push 0x104
lea edx, [esp + 0x244]
push eax
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x38]
push str.autoupdate.exe
lea edx, [esp + 0x140]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [esp + 0x13c]
push eax
push str.UpdateExe_:__s_n
push 1
call fcn.00404a50
add esp, 0xc
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40bddf
push 0x10
push 0x41f268
push 0x41f19c
push ebx
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x54c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40be85
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x244]
push edx
lea ecx, [esp + 0x144]
push eax
push ecx
lea edx, [esp + 0x354]
push str._s__s__s__d
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
push ebx
push 1
lea eax, [esp + 0x364]
push 0x420280
push eax
call fcn.00405470
add esp, 0x28
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jne 0x40be6a
cmp eax, 0x2e4
jne 0x40be6a
push 0x10
push 0x41f184
push 0x41f144
push ebx
call ebp
lea ecx, [esp + 0x10]
mov dword [esi + 0x3dc], 1
mov dword [esp + 0x54c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40be85
mov ebp, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x54c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, ebp
mov ecx, dword [esp + 0x544]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x540
ret 4