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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ebd0
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x5635b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str._proxyFullPath
lea ecx, [ebp - 0x14]
call fcn.004030b0
xor ebx, ebx
push str._proxyCmdLineArgs
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.004030b0
push str._proxyCurrentDir
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004030b0
push str._proxyShowUI
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004030b0
push str._proxyRegPath
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004030b0
push str._proxyLowerElevation
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004030b0
push str._proxyWait
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004030b0
push 0x18
mov byte [ebp - 4], 6
mov dword [ebp - 0x50], ebx
call fcn.00405258
add esp, 4
cmp eax, ebx
je 0x405130
mov dword [ebp - 0x54], eax
mov dword [eax], eax
mov eax, dword [ebp - 0x54]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x54]
mov byte [eax + 0x14], 1
mov ecx, dword [ebp - 0x54]
mov byte [ecx + 0x15], 1
lea edx, [ebp - 0x58]
push edx
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.004046e0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
call fcn.00404530
mov ecx, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ecx - 0xc], ebx
je 0x404de9
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x58]
call fcn.00404530
mov eax, dword [eax]
push eax
call edi
test eax, eax
je 0x404de9
push 0x51d5cc
lea ecx, [ebp - 0x30]
call fcn.004030b0
push str.regedit.exe
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.004030b0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.00404530
push eax
lea ecx, [ebp - 0x38]
push 0x51d5a8
push ecx
call fcn.00402640
push 0x51d5a4
push eax
lea edx, [ebp - 0x34]
mov bl, 0xa
push edx
mov byte [ebp - 4], bl
call fcn.00402560
add esp, 0x18
push 1
push 1
lea ecx, [ebp - 0x30]
push ecx
push eax
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.00403800
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404daf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404dd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00404530
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
push 0x51d56c
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x58]
mov dword [0x564aa8], eax
call fcn.00404530
mov eax, dword [eax]
push eax
call edi
test eax, eax
jne 0x404f51
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
call fcn.00404530
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
call fcn.00403f10
mov edx, dword [ebp - 0x54]
push edx
call fcn.00405287
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404e8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404eae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ed1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ef4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x51d568
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00404530
push eax
call fcn.00401660
add esp, 8
test al, al
sete dl
movzx eax, dl
push eax
push str.true
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00404530
push eax
call fcn.00401660
add esp, 8
test al, al
setne dl
movzx eax, dl
push eax
push 0x51d568
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00404530
push eax
call fcn.00401660
add esp, 8
test al, al
sete dl
movzx eax, dl
push eax
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00404530
push eax
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x58]
call fcn.00404530
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
call fcn.00404530
push eax
mov ecx, esi
call fcn.00404180
mov eax, dword [0x564aa8]
cmp eax, ebx
je 0x404ffe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x564aa8], ebx
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xd
call fcn.00403f10
mov edx, dword [ebp - 0x54]
push edx
call fcn.00405287
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405044
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405067
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40508a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405119
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x3c], ebx
call fcn.004f8da6
push 0x54e4d8
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], vtable.std::bad_alloc.0
call fcn.004f8eee
int3