Function at 0x40b718
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45abcb
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x47613c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov eax, dword [0x47613c]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov edi, ecx
push str.UpdateVersion.ini
lea ecx, [esp + 0x10]
call fcn.00406110
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..UpdateVersion.ini
push 0xff
lea eax, [esp + 0x18]
push eax
push 0
push str.CheckVersion
push str.Version
mov dword [esp + 0x134], 0
mov dword [edi + 0x870], 0
call esi
test eax, eax
je 0x40b718
lea ecx, [esp + 0x10]
push ecx
call fcn.00442012
add esp, 4
mov dword [edi + 0x870], eax
push 0
push str.UpdateVersion_mjw_.ini
call fcn.00441344
add esp, 8
test eax, eax
jne 0x40b75e
push str..UpdateVersion_mjw_.ini
push 0xff
lea edx, [esp + 0x18]
push edx
push eax
push str.CheckVersion
push str.Version
call esi
test eax, eax
je 0x40b75e
lea eax, [esp + 0x10]
push eax
call fcn.00442012
add esp, 4
mov dword [edi + 0x870], eax
push str..UpdateVersion.ini
push 0xff
lea ecx, [esp + 0x18]
push ecx
push 0
push str.UpdaterVersion
push str.Version
call esi
test eax, eax
jne 0x40b7da
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40b7a1
push 0
lea ecx, [esp + 0x10]
call fcn.004013e0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x11c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b7d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40b968
lea ecx, [esp + 0x10]
push ecx
call fcn.00442012
push 0
push str.UpdateVersion_mjw_.ini
mov dword [edi + 0x5c], eax
call fcn.00441344
add esp, 0xc
test eax, eax
jne 0x40b82a
push str..UpdateVersion_mjw_.ini
push 0xff
lea edx, [esp + 0x18]
push edx
push eax
push str.UpdaterVersion
push str.Version
call esi
test eax, eax
je 0x40b82a
lea eax, [esp + 0x10]
push eax
call fcn.00442012
add esp, 4
mov dword [edi + 0x5c], eax
cmp dword [edi + 0x5c], 9
jbe 0x40b834
mov byte [edi + 0x25], 1
push str..UpdateVersion.ini
push 0xff
lea ecx, [esp + 0x18]
push ecx
push 0
push str.PatchFileVersion
push str.Version
call esi
test eax, eax
jne 0x40b8b4
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40b877
push 0
lea ecx, [esp + 0x10]
call fcn.004013e0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x11c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b7d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40b968
lea ecx, [esp + 0x10]
push ecx
call fcn.00442012
push 0
push str.UpdateVersion_mjw_.ini
mov dword [edi + 0x54], eax
call fcn.00441344
add esp, 0xc
test eax, eax
jne 0x40b904
push str..UpdateVersion_mjw_.ini
push 0xff
lea edx, [esp + 0x18]
push edx
push eax
push str.PatchFileVersion
push str.Version
call esi
test eax, eax
je 0x40b904
lea eax, [esp + 0x10]
push eax
call fcn.00442012
add esp, 4
mov dword [edi + 0x54], eax
mov eax, dword [edi + 0x54]
cmp dword [edi + 0x50], eax
jbe 0x40b912
mov dword [edi + 0x50], eax
mov dword [edi + 0x58], eax
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40b934
push 0
lea ecx, [esp + 0x10]
call fcn.004013e0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x11c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b966
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00441051
add esp, 0x114
ret