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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e970
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.004030e0
xor ebx, ebx
push str._proxyCmdLineArgs
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.004030e0
push str._proxyCurrentDir
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004030e0
push str._proxyShowUI
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004030e0
push str._proxyRegPath
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004030e0
push str._proxyLowerElevation
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004030e0
push str._proxyWait
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004030e0
push 0x18
mov byte [ebp - 4], 6
mov dword [ebp - 0x50], ebx
call fcn.00405031
add esp, 4
cmp eax, ebx
je 0x404ff0
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.004045a0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
call fcn.004043f0
mov ecx, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ecx - 0xc], ebx
je 0x404ca9
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x58]
call fcn.004043f0
mov eax, dword [eax]
push eax
call edi
test eax, eax
je 0x404ca9
push 0x51d61c
lea ecx, [ebp - 0x30]
call fcn.004030e0
push str.regedit.exe
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.004030e0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.004043f0
push eax
lea ecx, [ebp - 0x38]
push 0x51d5f8
push ecx
call fcn.00402640
push 0x51d5f4
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.00403830
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 0x404c29
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 0x404c4c
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 0x404c6f
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 0x404c92
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.004043f0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
push 0x51d5bc
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.004043f0
mov eax, dword [eax]
push eax
call edi
test eax, eax
jne 0x404e11
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
call fcn.004043f0
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.00403f30
mov edx, dword [ebp - 0x54]
push edx
call fcn.00405060
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 0x404d28
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 0x404d4b
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 0x404d6e
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 0x404d91
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 0x404db4
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 0x404dd7
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 0x404dfd
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 0x51d5b8
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x58]
call fcn.004043f0
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.004043f0
push eax
call fcn.00401660
add esp, 8
test al, al
setne dl
movzx eax, dl
push eax
push 0x51d5b8
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x58]
call fcn.004043f0
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.004043f0
push eax
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x58]
call fcn.004043f0
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x58]
call fcn.004043f0
push eax
mov ecx, esi
call fcn.004041a0
mov eax, dword [0x564aa8]
cmp eax, ebx
je 0x404ebe
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.00403f30
mov edx, dword [ebp - 0x54]
push edx
call fcn.00405060
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 0x404f04
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 0x404f27
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 0x404f4a
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 0x404f6d
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 0x404f90
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 0x404fb3
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 0x404fd9
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.004f8b76
push 0x54e508
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], vtable.std::bad_alloc.0
call fcn.004f8cbe
int3