Function at 0x41d4c0
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46a550
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x48b270]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b270]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x2c], ecx
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d51c
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], 0
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d54e
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov byte [esp + 0x3c], 1
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d57d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x3c], 2
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d5ac
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x3c], 3
call fcn.00432e51
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41d5db
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esi]
sub eax, 0x10
mov ebx, 1
cmp dword [eax + 0xc], ebx
mov byte [esp + 0x3c], 4
jle 0x41d60a
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401720
mov eax, dword [esi]
push eax
lea edx, [esp + 0x18]
push 0x46ea2c
push edx
call fcn.00401f50
mov eax, dword [edi]
sub eax, 0x10
add esp, 0xc
cmp dword [eax + 0xc], ebx
jle 0x41d634
mov eax, dword [eax + 4]
push eax
mov ecx, edi
call fcn.00401720
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x20]
push 0x46ea2c
push ecx
call fcn.00401f50
mov eax, dword [ebp]
sub eax, 0x10
add esp, 0xc
cmp dword [eax + 0xc], ebx
jle 0x41d65f
mov edx, dword [eax + 4]
push edx
mov ecx, ebp
call fcn.00401720
mov eax, dword [ebp]
push eax
lea eax, [esp + 0x24]
push 0x46ea2c
push eax
call fcn.00401f50
mov esi, dword [esp + 0x38]
mov eax, dword [esi + 8]
add esi, 8
sub eax, 0x10
add esp, 0xc
cmp dword [eax + 0xc], ebx
jle 0x41d692
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
call fcn.00401720
mov esi, dword [esi]
push str.TQWBResource
push esi
lea edx, [esp + 0x20]
push 0x47128c
push edx
call fcn.00401f50
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp dword [eax - 4], ebx
jle 0x41d6c6
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00401720
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x30]
push str._supdate_s.ico
push ecx
call fcn.00401f50
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x10
push esi
call ebx
test eax, eax
jne 0x41d70b
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x28], esp
mov edi, esp
push eax
call fcn.00401290
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.0042d4b0
add esp, 4
push 7
push str.update
lea ecx, [esp + 0x20]
call fcn.00401e60
mov edi, dword [esp + 0x18]
push edi
call ebx
test eax, eax
jne 0x41d746
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x28], esp
mov esi, esp
push eax
call fcn.00401290
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0042d4b0
add esp, 4
mov esi, dword [esp + 0x28]
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x41d75a
push esi
call edi
mov ebp, dword [esp + 0x20]
cmp dword [ebp - 4], 1
jle 0x41d775
mov edx, dword [ebp - 0xc]
push edx
lea ecx, [esp + 0x24]
call fcn.00401720
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
push esi
push ebp
call fcn.00418700
test eax, eax
je 0x41d8c9
push str._show.ini
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00401d80
add esp, 0xc
mov esi, dword [esp + 0x1c]
cmp dword [esi - 4], 1
mov edi, dword [eax]
mov byte [esp + 0x3c], 5
jle 0x41d7c1
mov edx, dword [esi - 0xc]
push edx
lea ecx, [esp + 0x20]
call fcn.00401720
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 4], 1
jle 0x41d7dc
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00401720
mov ebx, dword [esp + 0x14]
push edi
push esi
push ebx
push str.ACTICV_GAME
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d80f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x3c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d830
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x3c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d851
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x3c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d872
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d897
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 dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d8bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41d989
push esi
call ebx
test eax, eax
je 0x41d8d3
push esi
call edi
lea eax, [ebp - 0x10]
mov byte [esp + 0x3c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d8f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x3c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d919
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 + 0x3c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d93e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d95f
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 dword [esp + 0x3c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d987
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004517f0
add esp, 0x2c
ret 0xc