Function at 0x409340
Capabilities:
Delete file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45807b
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x473204]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
mov eax, dword [0x473204]
xor eax, esp
push eax
lea eax, [esp + 0x114]
mov dword fs:[0], eax
mov edi, ecx
push str.UpdateVersion.txt
lea ecx, [esp + 0x10]
call fcn.004058a0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str..UpdateVersion.txt
push 0xff
lea eax, [esp + 0x18]
push eax
push 0
push str.CheckVersion
push str.Version
mov dword [esp + 0x134], 0
mov dword [edi + 0x878], 0
call esi
test eax, eax
je 0x4093d8
lea ecx, [esp + 0x10]
push ecx
call fcn.0043ea61
add esp, 4
mov dword [edi + 0x878], eax
push 0
push str.UpdateVersion_mjw_.ini
call fcn.0043eaf5
add esp, 8
test eax, eax
jne 0x40941e
push str..UpdateVersion_mjw_.txt
push 0xff
lea edx, [esp + 0x18]
push edx
push eax
push str.CheckVersion
push str.Version
call esi
test eax, eax
je 0x40941e
lea eax, [esp + 0x10]
push eax
call fcn.0043ea61
add esp, 4
mov dword [edi + 0x878], eax
push str..UpdateVersion.txt
push 0xff
lea ecx, [esp + 0x18]
push ecx
push 0
push str.UpdaterVersion
push str.Version
call esi
test eax, eax
jne 0x40949a
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x409461
push 0
lea ecx, [esp + 0x10]
call fcn.00401510
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 0x409493
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x409628
lea ecx, [esp + 0x10]
push ecx
call fcn.0043ea61
push 0
push str.UpdateVersion_mjw_.ini
mov dword [edi + 0x5c], eax
call fcn.0043eaf5
add esp, 0xc
test eax, eax
jne 0x4094ea
push str..UpdateVersion_mjw_.txt
push 0xff
lea edx, [esp + 0x18]
push edx
push eax
push str.UpdaterVersion
push str.Version
call esi
test eax, eax
je 0x4094ea
lea eax, [esp + 0x10]
push eax
call fcn.0043ea61
add esp, 4
mov dword [edi + 0x5c], eax
cmp dword [edi + 0x5c], 0x38
jbe 0x4094f4
mov byte [edi + 0x25], 1
push str..UpdateVersion.txt
push 0xff
lea ecx, [esp + 0x18]
push ecx
push 0
push str.PatchFileVersion
push str.Version
call esi
test eax, eax
jne 0x409574
mov edx, dword [esp + 0xc]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x409537
push 0
lea ecx, [esp + 0x10]
call fcn.00401510
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 0x409493
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x409628
lea ecx, [esp + 0x10]
push ecx
call fcn.0043ea61
push 0
push str.UpdateVersion_mjw_.ini
mov dword [edi + 0x54], eax
call fcn.0043eaf5
add esp, 0xc
test eax, eax
jne 0x4095c4
push str..UpdateVersion_mjw_.txt
push 0xff
lea edx, [esp + 0x18]
push edx
push eax
push str.PatchFileVersion
push str.Version
call esi
test eax, eax
je 0x4095c4
lea eax, [esp + 0x10]
push eax
call fcn.0043ea61
add esp, 4
mov dword [edi + 0x54], eax
mov eax, dword [edi + 0x54]
cmp dword [edi + 0x50], eax
jbe 0x4095d2
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 0x4095f4
push 0
lea ecx, [esp + 0x10]
call fcn.00401510
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 0x409626
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.0043e7e7
add esp, 0x114
ret