Function at 0x4696bc
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x500144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], ecx
mov esi, eax
push edi
mov ecx, 0x500078
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], eax
call fcn.0041e951
mov edi, eax
mov ebx, section..data
test edi, edi
jns 0x469774
mov eax, dword [section..data]
cmp eax, ebx
je 0x469774
test byte [eax + 0x1c], 8
je 0x469740
cmp byte [eax + 0x19], 2
jb 0x469740
call fcn.0042386b
push edi
push 0x40f230
push eax
mov eax, dword [section..data]
mov edx, 0x40f24c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xa
pop ecx
call fcn.0042371b
mov eax, dword [section..data]
cmp eax, ebx
je 0x469774
test byte [eax + 0x1c], 8
je 0x469774
cmp byte [eax + 0x19], 2
jb 0x469774
call fcn.0042386b
push edi
push 0x40f418
push eax
mov eax, dword [section..data]
mov edx, 0x40f87c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x18
pop ecx
call fcn.0042371b
call fcn.0042205c
mov ebx, eax
test ebx, ebx
jns 0x4698ba
mov eax, dword [section..data]
cmp eax, section..data
je 0x4697bf
test byte [eax + 0x1c], 8
je 0x4697bf
cmp byte [eax + 0x19], 2
jb 0x4697bf
call fcn.0042386b
push ebx
push 0x40f444
push eax
mov eax, dword [section..data]
mov edx, 0x40f87c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x19
pop ecx
call fcn.0042371b
xor edi, edi
cmp dword [0x50137c], 0
je 0x4697cf
call fcn.0046bb6d
test esi, esi
je 0x4697fb
cmp ebx, 0x40200
je 0x4697ed
lea eax, [esi + 0x1060]
cmp word [eax], di
je 0x4697ed
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, esi
call fcn.0045f694
push esi
call fcn.004fb234
pop ecx
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x469843
call fcn.00450ed1
mov ebx, eax
test ebx, ebx
jns 0x469843
mov eax, dword [section..data]
cmp eax, section..data
je 0x469843
test byte [eax + 0x1c], 1
je 0x469843
cmp byte [eax + 0x19], 2
jb 0x469843
call fcn.0042386b
push eax
mov eax, dword [section..data]
mov edx, 0x40f87c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x24
pop ecx
call fcn.004238e7
mov eax, dword [0x501274]
test eax, eax
je 0x469865
mov eax, dword [eax + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5035f0]
call esi
mov dword [0x501274], edi
test ebx, ebx
jns 0x469870
mov dword [ebp - 0x24], 1
mov ecx, dword [0x500094]
mov edx, dword [0x500090]
push ecx
push edx
mov dword [0x500078], edi
mov dword [0x500090], edi
mov dword [0x500094], edi
call dword [sym.imp.ADVAPI32.dll_EventUnregister]
lea ecx, [ebp - 0x20]
call fcn.004229fc
lea ecx, [ebp - 0xc]
call fcn.004229fc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004fb5e0
leave
ret 8
cmp ebx, 0x40200
je 0x4697bf
cmp dword [0x50137c], esi
je 0x4698ee
mov edi, dword [ebp - 0x1c]
push edi
cmp dword [0x501378], esi
je 0x4698e4
call fcn.0042265a
jmp 0x4697bf
call fcn.00422573
jmp 0x4697bf
push 0x19e0
call fcn.004fb25b
pop ecx
test eax, eax
je 0x469d75
mov ecx, eax
call fcn.0045f631
mov edi, eax
mov dword [ebp - 8], edi
mov esi, edi
test edi, edi
je 0x469d75
mov esi, dword [ebp - 0x10]
xor eax, eax
push eax
push ecx
push esi
mov ecx, edi
call fcn.0045f6c9
mov dword [ebp - 0x14], eax
test esi, esi
je 0x469969
xor ecx, ecx
cmp word [esi], cx
je 0x469969
mov dword [0x501168], eax
lea edx, [edi + 0x1960]
mov esi, edx
mov edi, 0x501170
push 0x20
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp eax, 1
je 0x4699b5
sub esp, 0x80
mov esi, edx
push 0x20
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00467d0a
mov edi, dword [ebp - 8]
jmp 0x46996e
cmp eax, 1
je 0x4699b8
mov eax, dword [section..data]
cmp eax, section..data
je 0x4699a7
test byte [eax + 0x1c], 1
je 0x4699a7
cmp byte [eax + 0x19], 2
jb 0x4699a7
call fcn.0042386b
push dword [ebp - 0x14]
mov edx, 0x40f87c
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1b
pop ecx
call fcn.00421fda
mov dword [ebp - 0x24], 1
mov esi, edi
jmp 0x4697bf
mov edi, dword [ebp - 8]
xor esi, esi
cmp dword [edi + 0x1298], esi
je 0x4699d0
mov edx, dword [ebp - 0x18]
mov ecx, edi
call fcn.00469565
mov ebx, eax
jmp 0x4699ae
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
call fcn.0044ff79
mov ebx, eax
test ebx, ebx
jns 0x469a1f
mov eax, dword [section..data]
cmp eax, section..data
je 0x4699ae
test byte [eax + 0x1c], 8
je 0x4699ae
cmp byte [eax + 0x19], 2
jb 0x4699ae
call fcn.0042386b
push ebx
push 0x40f468
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1c
mov edx, 0x40f87c
pop ecx
call fcn.0042371b
jmp 0x4699ae
push 0x3462c
call fcn.004fb25b
pop ecx
test eax, eax
je 0x469a37
mov ecx, eax
call fcn.0043eae2
jmp 0x469a39
mov eax, esi
push eax
lea ecx, [ebp - 0x20]
call fcn.004229a7
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x469a8e
mov eax, dword [section..data]
cmp eax, section..data
je 0x469a84
test byte [eax + 0x1c], 8
je 0x469a84
cmp byte [eax + 0x19], 2
jb 0x469a84
call fcn.0042386b
push 0x407bf8
push eax
mov eax, dword [section..data]
mov edx, 0x40f87c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1d
pop ecx
call fcn.0042200a
mov ebx, 0x8007000e
jmp 0x4699ae
push edi
mov ecx, esi
call fcn.0044956f
mov ebx, eax
test ebx, ebx
jns 0x469ade
mov eax, dword [section..data]
cmp eax, section..data
je 0x4699ae
test byte [eax + 0x1c], 8
je 0x4699ae
cmp byte [eax + 0x19], 2
jb 0x4699ae
call fcn.0042386b
push ebx
push 0x40f488
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1e
jmp 0x469a12
xor eax, eax
xor ecx, ecx
cmp dword [edi + 0xc3c], eax
lea eax, [edi + 0xa30]
push eax
lea eax, [edi + 0x828]
sete cl
push eax
mov eax, dword [ebp - 0x10]
push eax
push ecx
push esi
call fcn.00450b0c
mov ebx, eax
mov dword [ebp - 8], edi
cmp ebx, 0x40200
je 0x469d0c
test ebx, ebx
jns 0x469b5b
mov eax, dword [section..data]
cmp eax, section..data
je 0x4699ae
test byte [eax + 0x1c], 8
je 0x4699ae
cmp byte [eax + 0x19], 2
jb 0x4699ae
call fcn.0042386b
push ebx
push 0x40f4b4
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1f
jmp 0x469a12
push edi
mov ecx, esi
call fcn.00448e95
mov ebx, eax
test ebx, ebx
jns 0x469bab
mov eax, dword [section..data]
cmp eax, section..data
je 0x4699ae
test byte [eax + 0x1c], 8
je 0x4699ae
cmp byte [eax + 0x19], 2
jb 0x4699ae
call fcn.0042386b
push ebx
push 0x40f4dc
push eax
mov eax, dword [section..data]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x20
jmp 0x469a12
lea ecx, [esi + 0x34620]
call fcn.0046b449
lea ecx, [edi + 0x1060]
mov dword [ebp - 8], edi
xor eax, eax
cmp word [ecx], ax
je 0x469be2
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.0045f694
push edi
call fcn.004fb234
xor edi, edi
pop ecx
mov dword [ebp - 8], edi
jmp 0x469be4
xor edi, edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push eax
mov ecx, esi
call fcn.0044e441
mov ebx, eax
test ebx, ebx
jns 0x469c4c
mov eax, dword [section..data]
cmp eax, section..data
je 0x469c36
test byte [eax + 0x1c], 1
je 0x469c36
cmp byte [eax + 0x19], 2
jb 0x469c36
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
mov edx, 0x40f87c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x21
pop ecx
call fcn.00421fda
push dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
call fcn.0046905b
mov esi, dword [ebp - 8]
jmp 0x4697c1
mov ecx, dword [ebp - 0xc]
push esi
push edi
call fcn.00450310
mov ebx, eax
test ebx, ebx
jns 0x469c9a
mov eax, dword [section..data]
cmp eax, section..data
je 0x469c44
test byte [eax + 0x1c], 8
je 0x469c44
cmp byte [eax + 0x19], 2
jb 0x469c44
call fcn.0042386b
push ebx
push 0x40f4f4
push eax
mov eax, dword [section..data]
mov edx, 0x40f87c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x22
pop ecx
call fcn.0042371b
jmp 0x469c44
mov eax, dword [ebp - 0xc]
mov esi, edi
mov eax, dword [eax + 0x20]
test eax, eax
je 0x469ca9
mov esi, dword [eax + 0x54]
test ebx, ebx
jne 0x469c44
push edi
push edi
push edi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x469c44
mov edi, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x469d14
lea eax, [ebp - 0x40]
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x469cf9
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x469cf9
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x469cc1
mov esi, dword [ebp - 8]
jmp 0x4697bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x469d53
test byte [eax + 0x1c], 8
je 0x469d53
cmp byte [eax + 0x19], 2
jb 0x469d53
call fcn.0042386b
push ebx
push eax
mov eax, dword [section..data]
mov edx, 0x40f87c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x23
pop ecx
call fcn.00421fda
test ebx, ebx
jle 0x469d62
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
mov esi, dword [ebp - 8]
js 0x4697bf
mov ebx, 0x80004005
jmp 0x4697bf
xor edi, edi
mov eax, dword [section..data]
cmp eax, section..data
je 0x469db2
test byte [eax + 0x1c], 8
je 0x469db2
cmp byte [eax + 0x19], 2
jb 0x469db2
call fcn.0042386b
push 0x407be8
push eax
mov eax, dword [section..data]
mov edx, 0x40f87c
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1a
pop ecx
call fcn.0042200a
mov ebx, 0x8007000e
jmp 0x4697c1