Function at 0x408f50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540250
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5a38c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov byte [edi + 0x9cc], 1
call fcn.00428115
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408f9b
push 0x80004005
call fcn.00401050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x878]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1032
push ecx
mov dword [ebp - 4], 0
call ebx
push 0
push 0
cmp eax, 1
jbe 0x408ff7
mov edx, dword [edi + 0x878]
push 0x1032
push edx
call ebx
push eax
lea eax, [ebp - 0x14]
push 0x551890
push eax
call fcn.00401560
add esp, 0xc
jmp 0x409085
mov ecx, dword [edi + 0x878]
push 0x1042
push ecx
call ebx
push 0
push eax
lea edx, [ebp - 0x10]
push edx
lea ecx, [edi + 0x858]
call fcn.00436337
mov eax, dword [edi + 0x878]
push 0
push 0
push 0x1042
push eax
mov byte [ebp - 4], 1
call ebx
push eax
lea ecx, [edi + 0x858]
call fcn.0043583d
cmp eax, 1
jne 0x40904d
mov ecx, dword [ebp - 0x10]
push ecx
push 0x551864
lea edx, [ebp - 0x14]
push edx
jmp 0x40905a
mov eax, dword [ebp - 0x10]
push eax
push 0x55184c
lea ecx, [ebp - 0x14]
push ecx
call fcn.00401560
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409085
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x14]
mov ecx, dword [edi + 0x20]
push 0x24
push 0x551840
push esi
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x4090bb
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40921e
push 0
mov ecx, edi
call fcn.00401e10
mov ecx, dword [edi + 0x878]
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebx
mov ebx, eax
inc ebx
je 0x4091e7
nop
mov edx, dword [edi + 0x878]
push 2
lea esi, [ebx - 1]
push esi
push 0x100c
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
lea ebx, [eax + 1]
push esi
lea eax, [ebp - 0x18]
push eax
lea ecx, [edi + 0x858]
call fcn.00436337
push eax
lea eax, [edi + 0x720]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 4], 2
call fcn.00403c20
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409148
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [edi + 0x858]
call fcn.0043583d
test eax, eax
je 0x4091af
mov edx, dword [ebp - 0x10]
mov esi, dword [edx - 0xc]
mov dword [ebp - 0x1c], esi
inc esi
js 0x40923c
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x409185
push esi
lea ecx, [ebp - 0x10]
call fcn.004011e0
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + edx], 0x5c
mov eax, dword [ebp - 0x10]
cmp esi, dword [eax - 8]
jg 0x40923c
mov dword [eax - 0xc], esi
mov edx, dword [ebp - 0x10]
mov byte [esi + edx], 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00401ec0
jmp 0x4091b9
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4091dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x4090e0
mov esi, dword [ebp - 0x14]
push 1
mov ecx, edi
call fcn.00401e10
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x55182c
call fcn.00406eb0
mov ecx, edi
call fcn.00408050
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40922a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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 0x80070057
call fcn.00401050
int3