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

Disassembly:
push 0xffffffffffffffff
push 0x489b33
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4a9150]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9150]
xor eax, esp
push eax
lea eax, [esp + 0x140]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], esi
xor ebp, ebp
push 0x103
lea eax, [esp + 0x3d]
push ebp
push eax
mov dword [esp + 0x154], ebp
mov byte [esp + 0x44], 0
call fcn.0043f2b0
mov edx, dword [esi + 0x24]
add esp, 0xc
push ebp
push ebp
push 0x104
lea ecx, [esp + 0x44]
push ecx
or ebx, 0xffffffff
push ebx
add edx, 0x88
push edx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x38]
add eax, ebx
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4223d0
mov ecx, dword [str.updatecfg.xml]
mov edx, dword [0x48da04]
mov dword [eax], ecx
mov ecx, dword [0x48da08]
mov dword [eax + 4], edx
mov dx, word [0x48da0c]
mov dword [eax + 8], ecx
mov cl, byte [0x48da0e]
mov word [eax + 0xc], dx
lea edx, [esp + 0x38]
push edx
mov byte [eax + 0xe], cl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4226d4
push 0x48
call fcn.0043ab80
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x148], 1
cmp eax, ebp
je 0x422447
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.00432890
mov edi, eax
mov dword [esp + 0x20], edi
jmp 0x42244d
mov dword [esp + 0x20], ebp
mov edi, ebp
mov byte [esp + 0x148], 0
cmp edi, ebp
je 0x4226ee
push ebp
mov ecx, edi
call fcn.00434350
test al, al
jne 0x422487
mov eax, dword [esp + 0x150]
add eax, 0xfffffff0
mov dword [esp + 0x148], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
jmp 0x422707
mov ecx, edi
call fcn.004316c0
cmp eax, ebp
jne 0x4224a3
lea ecx, [esp + 0x150]
call fcn.0040d560
jmp 0x422715
mov ecx, eax
call fcn.004316c0
mov edx, dword [0x4ab834]
mov esi, eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4ab834
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edx, dword [0x4ab834]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ab834
mov byte [esp + 0x148], 2
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov edx, dword [0x4ab834]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ab834
mov byte [esp + 0x148], 3
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov edx, dword [0x4ab834]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ab834
mov byte [esp + 0x148], 4
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov bl, 5
mov byte [esp + 0x148], bl
cmp esi, ebp
je 0x4226a3
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0x48d9fc
mov ecx, esi
call fcn.004325b0
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0040d990
add esp, 8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 6
call fcn.00410770
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x148], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42258a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.subkey
mov ecx, esi
call fcn.004325b0
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.0040d990
add esp, 8
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x14c], 7
call fcn.00410770
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x148], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4225dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.value
mov ecx, esi
call fcn.004325b0
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040d990
add esp, 8
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 8
call fcn.00410770
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x148], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422630
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.00410770
mov edi, dword [esp + 0x24]
push str.path
push edi
call fcn.004411fb
add esp, 8
test eax, eax
jne 0x422679
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0x24]
push edx
add ecx, 0x290
push ecx
lea edx, [esp + 0x1c]
push 0x48d9d4
push edx
call fcn.00414dd0
add esp, 0x10
mov eax, dword [esp + 0x150]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edi
push edx
call ebp
mov ecx, esi
call fcn.00431730
mov esi, eax
test esi, esi
jne 0x422537
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
lea ecx, [esp + 0x14]
call fcn.0040d560
lea ecx, [esp + 0x18]
call fcn.0040d560
lea ecx, [esp + 0x24]
call fcn.0040d560
lea ecx, [esp + 0x1c]
call fcn.0040d560
or ebx, 0xffffffff
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4226ee
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x150]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov dword [esp + 0x148], ebx
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x422715
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0043f097
add esp, 0x138
ret 4