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

Disassembly:
push ebp
sub esp, 0xe40
lea ebp, [esp - 4]
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp + 0xe40], eax
push 0x88
mov eax, 0x46d1b9
call fcn.004489fc
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
push 0x206
mov word [ebp + 0xc38], ax
lea eax, [ebp + 0xc3a]
push ebx
push eax
mov dword [ebp - 0x20], ecx
call fcn.004463d0
add esp, 0xc
push 0x104
lea eax, [ebp + 0xc38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...QQMicroGameBox_ResourceUpdate.ini
lea eax, [ebp + 0xc38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0xc38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41905b
xor eax, eax
push 0x800
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
call fcn.004463d0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea eax, [ebp + 0xc38]
push eax
push 0x400
lea eax, [ebp + 0x1c]
push eax
push ebx
push 0x46f5f0
push 0x46f5e4
call edi
lea ecx, [ebp - 0x44]
call fcn.0040f278
push ebx
lea ecx, [ebp]
mov dword [ebp - 4], ebx
mov dword [ebp + 0x18], 7
call fcn.004019f0
lea eax, [ebp - 0x24]
push eax
mov esi, 0x46e85c
push esi
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], ebx
push eax
jmp 0x418dd9
push eax
lea ecx, [ebp - 0x68]
call fcn.004031f0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00418c5d
push ebx
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401a20
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
call fcn.0044a467
add esp, 0xc
cmp eax, ebx
jne 0x418dab
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x1c]
call fcn.00409939
jmp 0x41900f
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp + 0xa2c], ax
lea eax, [ebp + 0xa2e]
push ebx
push eax
call fcn.004463d0
xor eax, eax
push esi
mov word [ebp + 0x820], ax
lea eax, [ebp + 0x822]
push ebx
push eax
call fcn.004463d0
add esp, 0x18
lea ecx, [ebp - 0x1c]
call fcn.00403b01
cmp dword [eax + 0x18], 8
jb 0x418e42
mov eax, dword [eax + 4]
jmp 0x418e45
add eax, 4
lea ecx, [ebp + 0xc38]
push ecx
mov esi, 0x104
push esi
lea ecx, [ebp + 0xa2c]
push ecx
push ebx
push str.package
push eax
call edi
lea ecx, [ebp - 0x1c]
call fcn.00403b01
cmp dword [eax + 0x18], 8
jb 0x418e75
mov eax, dword [eax + 4]
jmp 0x418e78
add eax, 4
lea ecx, [ebp + 0xc38]
push ecx
push esi
lea ecx, [ebp + 0x820]
push ecx
push ebx
push 0x46f604
push eax
call edi
lea eax, [ebp + 0xa2c]
push eax
push str.Package_path:_s
call fcn.004053cd
push eax
call fcn.004047c2
add esp, 0xc
lea eax, [ebp + 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418f0a
lea eax, [ebp + 0x820]
push eax
lea ecx, [ebp - 0x84]
call fcn.004031f0
or dword [ebp - 0x14], 1
lea eax, [ebp + 0xa2c]
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.004031f0
mov ecx, dword [ebp - 0x20]
or dword [ebp - 0x14], 2
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 4], 4
call fcn.00417fb8
mov byte [ebp - 0xd], 1
test al, al
jne 0x418f0d
mov byte [ebp - 0xd], bl
test byte [ebp - 0x14], 2
je 0x418f22
and dword [ebp - 0x14], 0xfffffffd
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00401a20
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test byte [ebp - 0x14], al
je 0x418f3e
and dword [ebp - 0x14], 0xfffffffe
push ebx
push eax
lea ecx, [ebp - 0x84]
call fcn.00401a20
cmp byte [ebp - 0xd], bl
je 0x418fed
push 0x54
call fcn.00448df6
pop ecx
cmp eax, ebx
je 0x418f5e
mov ecx, eax
call fcn.00417020
mov esi, eax
jmp 0x418f60
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.00403b01
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.004018c0
lea eax, [ebp + 0xa2c]
push eax
lea ecx, [esi + 0x1c]
call fcn.004019c0
lea eax, [ebp + 0x820]
push eax
lea ecx, [esi + 0x38]
call fcn.004019c0
lea ecx, [ebp - 0x1c]
call fcn.00403b01
cmp dword [eax + 0x18], 8
jb 0x418fa4
mov eax, dword [eax + 4]
jmp 0x418fa7
add eax, 4
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x48], esi
call fcn.0041733d
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x94]
push eax
add ecx, 0x50
mov byte [ebp - 4], 5
call fcn.00418125
push ebx
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00401a20
jmp 0x419007
lea eax, [ebp + 0xa2c]
push eax
push 0x470ab8
call fcn.004053cd
push eax
call fcn.004047c2
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004169cd
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
call fcn.00409939
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407d66
test al, al
je 0x418df9
lea eax, [ebp + 0xc38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 1
lea ecx, [ebp]
call fcn.00401a20
lea ecx, [ebp - 0x44]
call fcn.0041828f
push dword [ebp - 0x44]
call fcn.0044674d
pop ecx
mov ecx, dword [ebp - 0x20]
xor eax, eax
cmp dword [ecx + 0x6c], ebx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe40]
xor ecx, ebp
call fcn.004463b6
add ebp, 0xe44
leave
ret