Function at 0x406140
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ee6a
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5ba6c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, 1
mov dword [ebp - 4], esi
mov byte [ebp - 0x214], 0
push 0x1ff
xor edi, edi
push edi
lea eax, [ebp - 0x213]
push eax
call fcn.0052f600
add esp, 0xc
mov dword [ebp - 0x224], edi
lea ecx, [ebp - 0x25c]
call fcn.0042eff6
mov byte [ebp - 4], 2
call fcn.0042e490
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4061c6
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x218], eax
mov byte [ebp - 4], 4
call fcn.0042e490
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4061f6
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 6
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x218]
call fcn.00404550
push 0x5c
mov edx, dword [ebp - 0x218]
push edx
call fcn.00530c47
add esp, 8
cmp eax, edi
jne 0x406235
or eax, 0xffffffff
jmp 0x40623b
sub eax, dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00403bd0
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x220]
call fcn.00404550
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406284
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
push edi
push edi
push edi
push esi
push 0x564f04
lea ecx, [ebp - 0x248]
call fcn.0042ff4e
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x234], 8
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x230]
push edx
push 0x3b
lea ecx, [ebp - 0x248]
call fcn.0042f8f0
cmp dword [ebp - 0x22c], edi
je 0x4062f1
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], edi
push edi
push 8
lea eax, [ebp - 0x230]
push eax
push 0x3b
lea ecx, [ebp - 0x248]
call fcn.0042f8d2
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00401f50
mov byte [ebp - 4], 0xb
push edi
push edi
push 0x84000002
push esi
mov edx, dword [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x248]
call fcn.004308ad
mov esi, eax
mov dword [ebp - 0x224], esi
push 0x200
mov ecx, esi
call fcn.0042fc59
mov dword [ebp - 0x228], edi
push edi
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x270]
call fcn.004055a0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x270]
push eax
push 0x9041
mov ecx, dword [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.0042f47e
mov ebx, eax
cmp ebx, edi
jne 0x406410
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x270]
call fcn.00403d00
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x21c]
call fcn.00401690
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00430601
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x220]
call fcn.00401690
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x218]
call fcn.00401690
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.0042f126
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401690
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401690
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052f5f0
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push 0x200
lea eax, [ebp - 0x214]
push eax
mov ecx, esi
mov edx, dword [edx + 0x38]
call edx
mov edi, eax
test edi, edi
jne 0x406634
test ebx, ebx
je 0x40643e
lea ecx, [ebp - 0x25c]
call fcn.0042ef91
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 0x50]
call edx
mov eax, dword [esi]
push 1
mov ecx, esi
mov edx, dword [eax + 4]
call edx
mov dword [ebp - 0x224], 0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x248]
call fcn.00430518
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x270]
call fcn.00403d00
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x21c]
call fcn.00401690
mov dword [ebp - 4], 9
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x406577
cmp dword [ebp - 0x228], eax
jae 0x406577
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00430601
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4064f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406516
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.0042f126
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406548
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4063e8
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x248]
call fcn.00430601
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
call fcn.0042f126
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406604
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40662a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4063ea
test ebx, ebx
je 0x40664b
push edi
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.0042ed2d
add dword [ebp - 0x228], edi
jmp 0x406410