Function at 0x41ac80
Capabilities:
Check if file exists
Delete file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46a1c8
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x450]
mov edi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], ebp
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41ace6
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x30], esi
mov dword [esp + 0x448], 0
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41ad1b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x34], ebx
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
mov byte [esp + 0x448], 1
jge 0x41ad59
push 0x400
lea ecx, [esp + 0x34]
call fcn.004017a0
mov esi, dword [esp + 0x30]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x400
push esi
push str.1.0.0.0
push str.updver
push str.NBupdateset
call ebp
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00450e3f
add esp, 8
test eax, eax
jl 0x41b240
cmp eax, dword [esi - 8]
jg 0x41b240
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea eax, [edi + 0xc]
push 0x471360
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00401d80
add esp, 0xc
mov edi, dword [eax]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x400
or eax, ecx
mov byte [esp + 0x448], 2
jge 0x41ade2
push 0x400
lea ecx, [esp + 0x38]
call fcn.004017a0
mov ebx, dword [esp + 0x34]
push edi
push 0x400
push ebx
push str.1.0.0.0
push str.updver
push str.NBupdateset
call ebp
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x448], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ae22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.00450e3f
add esp, 8
test eax, eax
jl 0x41b240
cmp eax, dword [ebx - 8]
jg 0x41b240
push 0x46eb20
mov dword [ebx - 0xc], eax
push esi
mov byte [eax + ebx], 0
call fcn.0045100a
add esp, 8
test eax, eax
setne al
test al, al
je 0x41b260
push ecx
lea eax, [ebx - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push eax
call fcn.00401290
add esp, 4
lea ecx, [esp + 0x18]
add eax, 0x10
push ecx
mov ecx, dword [esp + 0x28]
mov dword [edi], eax
call fcn.004190f0
mov edi, eax
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x30], esp
mov ebp, esp
push eax
mov byte [esp + 0x450], 3
call fcn.00401290
add eax, 0x10
mov dword [ebp], eax
mov ebp, dword [esp + 0x28]
add esp, 4
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.004190f0
mov eax, dword [eax]
mov edi, dword [edi]
push eax
call fcn.004535eb
push edi
mov dword [esp + 0x2c], eax
call fcn.004535eb
mov ecx, dword [esp + 0x2c]
add esp, 8
cmp eax, ecx
mov eax, dword [esp + 0x28]
setl byte [esp + 0x1f]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41aefd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x448], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41af25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1f], 0
je 0x41b24a
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41af4a
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
mov edi, dword [esp + 0x20]
push str.TQWB_update.bak
add edi, 8
lea ecx, [esp + 0x1c]
push edi
push ecx
mov byte [esp + 0x454], 4
call fcn.00401d80
push str.TQWB_update.exe
lea edx, [esp + 0x38]
push edi
push edx
mov byte [esp + 0x460], 5
call fcn.00401d80
add esp, 0x18
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x400
or eax, ecx
mov byte [esp + 0x448], 6
jge 0x41afc2
push 0x400
lea ecx, [esp + 0x28]
call fcn.004017a0
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x400
push ebp
push 0x46eb20
push str.updurl
push str.NBupdateset
call edi
mov eax, dword [ebp - 8]
push eax
push ebp
call fcn.00450e3f
add esp, 8
test eax, eax
jl 0x41b240
cmp eax, dword [ebp - 8]
jg 0x41b240
mov dword [ebp - 0xc], eax
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push ebp
call fcn.00418700
test eax, eax
je 0x41b1c9
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41b1c9
push 0x3ff
lea eax, [esp + 0x41]
push 0
push eax
mov byte [esp + 0x48], 0
call fcn.00451390
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00401850
mov ecx, dword [esp + 0x38]
push ecx
push 0x400
push 0x400
lea ecx, [esp + 0x20]
mov byte [esp + 0x454], 7
call fcn.004018e0
push eax
push 0x46eb20
push str.updmd5
push str.NBupdateset
call edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00450e3f
add esp, 8
test eax, eax
jl 0x41b240
cmp eax, dword [edi - 8]
jg 0x41b240
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x41b0cb
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401720
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.00422210
add esp, 8
cmp dword [edi - 4], 1
jle 0x41b107
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00401720
mov edi, dword [esp + 0x14]
cmp dword [edi - 4], 1
jle 0x41b107
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00401720
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x3c]
jmp 0x41b110
mov cl, byte [edi]
cmp cl, byte [eax]
jne 0x41b130
test cl, cl
je 0x41b12c
mov cl, byte [edi + 1]
cmp cl, byte [eax + 1]
jne 0x41b130
add edi, 2
add eax, 2
test cl, cl
jne 0x41b110
xor eax, eax
jmp 0x41b135
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41b1b5
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41b153
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00454763
mov eax, dword [esp + 0x28]
push 0x471360
add eax, 0xc
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.00401d80
mov eax, dword [eax]
add esp, 0x14
push eax
push esi
push str.updver
push str.NBupdateset
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x2c]
call fcn.004018a0
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x170]
push 0
push 0
push 0x8032
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x41b1c0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call fcn.004018a0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x448], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b1f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x448], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b219
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebp, 0xfffffff0
mov byte [esp + 0x448], 1
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b260
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
jmp 0x41b260
push 0x80070057
call fcn.00401090
mov eax, dword [ebp + 0x170]
push 0
push 0
push 0x8032
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
add ebx, 0xfffffff0
mov byte [esp + 0x448], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b284
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add esi, 0xfffffff0
mov dword [esp + 0x448], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b2ab
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, 1
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.004517f0
add esp, 0x438
ret 8