Function at 0x40ed60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
lea ecx, [ebp - 0x18]
call fcn.00402950
push 1
lea eax, [ebp - 0x18]
push eax
call fcn.00402260
mov ecx, eax
call fcn.004022e0
lea ecx, [ebp - 0x18]
call fcn.00401160
test eax, eax
jg 0x40eda6
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x18]
call fcn.00401090
mov eax, dword [ebp - 0x70]
jmp 0x40f190
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
push 0x411fd0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004029b0
add esp, 0xc
push 0x411fec
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004029b0
add esp, 0xc
push str.ksafeup.dll_old
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004029b0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00401360
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ee19
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401360
push eax
call fcn.0040f1a0
add esp, 8
push str.4.1.0.0
call fcn.0040f2c0
add esp, 4
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x34], ecx
push str.4.2.0.2531
call fcn.0040f2c0
add esp, 4
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x24], eax
push 0x412054
call fcn.0040f2c0
add esp, 4
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x1c]
je 0x40eebe
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x34]
jb 0x40f160
ja 0x40eea4
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x38]
jb 0x40f160
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
ja 0x40f160
jb 0x40eebe
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x28]
ja 0x40f160
mov dword [ebp - 0x40], 0
xor edx, edx
mov dword [ebp - 0x3c], edx
lea ecx, [ebp - 4]
call fcn.00401360
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eef2
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 4]
call fcn.00401360
push eax
call fcn.0040f1a0
add esp, 8
mov ecx, dword [ebp - 0x40]
or ecx, dword [ebp - 0x3c]
je 0x40ef2e
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x34]
jb 0x40f160
ja 0x40ef14
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x38]
jb 0x40f160
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0xc]
ja 0x40f160
jb 0x40ef2e
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x10]
jae 0x40f160
push str.ksafeup.dll.new
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.004029b0
add esp, 0xc
push 0x412090
push 0x3e9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x40ef9d
mov dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x58]
call fcn.00401090
lea ecx, [ebp - 0x14]
call fcn.00401090
lea ecx, [ebp - 4]
call fcn.00401090
lea ecx, [ebp - 0x2c]
call fcn.00401090
lea ecx, [ebp - 0x18]
call fcn.00401090
mov eax, dword [ebp - 0x8c]
jmp 0x40f190
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x40eff1
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x58]
call fcn.00401090
lea ecx, [ebp - 0x14]
call fcn.00401090
lea ecx, [ebp - 4]
call fcn.00401090
lea ecx, [ebp - 0x2c]
call fcn.00401090
lea ecx, [ebp - 0x18]
call fcn.00401090
mov eax, dword [ebp - 0x90]
jmp 0x40f190
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x40f045
mov dword [ebp - 0x94], 0
lea ecx, [ebp - 0x58]
call fcn.00401090
lea ecx, [ebp - 0x14]
call fcn.00401090
lea ecx, [ebp - 4]
call fcn.00401090
lea ecx, [ebp - 0x2c]
call fcn.00401090
lea ecx, [ebp - 0x18]
call fcn.00401090
mov eax, dword [ebp - 0x94]
jmp 0x40f190
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x40f09c
mov dword [ebp - 0x98], 0
lea ecx, [ebp - 0x58]
call fcn.00401090
lea ecx, [ebp - 0x14]
call fcn.00401090
lea ecx, [ebp - 4]
call fcn.00401090
lea ecx, [ebp - 0x2c]
call fcn.00401090
lea ecx, [ebp - 0x18]
call fcn.00401090
mov eax, dword [ebp - 0x98]
jmp 0x40f190
mov edx, dword [ebp - 0x48]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x9c], esp
lea eax, [ebp - 0x58]
push eax
call fcn.004013c0
lea ecx, [ebp - 0x6c]
call fcn.00402890
lea ecx, [ebp - 0x6c]
call fcn.004026f0
test eax, eax
jne 0x40f10b
mov dword [ebp - 0xa0], 0
lea ecx, [ebp - 0x6c]
call fcn.00402930
lea ecx, [ebp - 0x58]
call fcn.00401090
lea ecx, [ebp - 0x14]
call fcn.00401090
lea ecx, [ebp - 4]
call fcn.00401090
lea ecx, [ebp - 0x2c]
call fcn.00401090
lea ecx, [ebp - 0x18]
call fcn.00401090
mov eax, dword [ebp - 0xa0]
jmp 0x40f190
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x6c]
call fcn.00402910
push eax
call fcn.00405430
add esp, 0xc
lea ecx, [ebp - 0x6c]
call fcn.00402930
lea ecx, [ebp - 0x14]
call fcn.00401360
push eax
lea ecx, [ebp - 4]
call fcn.00401360
push eax
lea ecx, [ebp - 0x58]
call fcn.00401360
push eax
call fcn.0040eb50
add esp, 0xc
test eax, eax
je 0x40f158
call fcn.0040ec30
lea ecx, [ebp - 0x58]
call fcn.00401090
mov dword [ebp - 0xa4], 0
lea ecx, [ebp - 0x14]
call fcn.00401090
lea ecx, [ebp - 4]
call fcn.00401090
lea ecx, [ebp - 0x2c]
call fcn.00401090
lea ecx, [ebp - 0x18]
call fcn.00401090
mov eax, dword [ebp - 0xa4]
mov esp, ebp
pop ebp
ret 0x10