Function at 0x406650
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421830
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x4360c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x78], 0xffffffff
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0
push ecx
push 0
push 0x80
push 3
push 1
mov dword [ebp - 4], 0
push 0x80000000
push dword [0x4397e0]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.00401ee0
mov edi, dword [ebp - 0x3c]
mov esi, eax
test esi, esi
js 0x406714
push 0
sub esp, 0x14
lea ecx, [ebp - 0x60]
push edi
call fcn.0040f920
mov esi, eax
test esi, esi
js 0x406714
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], eax
call fcn.0040fcb0
test edi, edi
je 0x40671f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x40673e
lea ecx, [ebp - 0x78]
call fcn.004100e0
push dword [0x4397e0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
jmp 0x406c7d
mov eax, dword [0x436e84]
mov ecx, 0x436e84
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [0x436e84]
mov ecx, 0x436e84
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov eax, dword [0x436e84]
mov ecx, 0x436e84
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
mov eax, dword [0x436e84]
mov ecx, 0x436e84
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call fcn.0040fd50
test eax, eax
je 0x406bf8
mov edi, edi
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jl 0x406be4
push str._cdict
push esi
call fcn.00413fef
add esp, 8
test eax, eax
je 0x406a56
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x406a56
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040fd50
test eax, eax
je 0x406cb9
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jl 0x406c99
push 0x4327bc
push esi
call fcn.00413fef
add esp, 8
test eax, eax
je 0x406c99
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x406c99
inc eax
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.00407260
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov esi, dword [ebp - 0x18]
lea edx, [ecx - 0x10]
add esi, 0xfffffff0
cmp edx, esi
je 0x40688b
cmp dword [esi + 0xc], 0
jl 0x40687f
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x40687f
push edx
call fcn.00407780
add esp, 4
mov dword [ebp - 0x24], eax
or ecx, 0xffffffff
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406877
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [ebp - 0x18], eax
jmp 0x40688b
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402320
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4068ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040fd50
test eax, eax
je 0x406cb9
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jl 0x406c99
push 0x4327bc
push esi
call fcn.00413fef
add esp, 8
test eax, eax
je 0x406c99
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x406c99
inc eax
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00407260
mov byte [ebp - 4], 6
mov ecx, dword [eax]
lea esi, [ebx - 0x10]
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x406957
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x406948
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x406948
push edx
call fcn.00407780
add esp, 4
mov dword [ebp - 0x24], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x406940
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
jmp 0x406957
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402320
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406978
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040fd50
test eax, eax
je 0x406cb9
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jl 0x406c99
push 0x4327bc
push esi
call fcn.00413fef
add esp, 8
test eax, eax
je 0x406c99
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x406c99
inc eax
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.00407260
mov byte [ebp - 4], 7
mov ecx, dword [eax]
lea esi, [edi - 0x10]
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x406a23
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x406a14
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x406a14
push edx
call fcn.00407780
add esp, 4
mov dword [ebp - 0x24], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x406a0c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
jmp 0x406a23
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00402320
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406a44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x14]
push edi
push ebx
push dword [ebp - 0x18]
call fcn.00402ab0
jmp 0x406be4
cmp dword [esi - 0xc], 0
jl 0x406be4
push 0x4327c0
push esi
call fcn.00413fef
add esp, 8
test eax, eax
je 0x406be4
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x406be4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040fd50
test eax, eax
je 0x406cb9
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jl 0x406c99
push 0x4327bc
push esi
call fcn.00413fef
add esp, 8
test eax, eax
je 0x406c99
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x406c99
inc eax
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
call fcn.00407260
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov esi, dword [edx + 0x18]
lea eax, [ecx - 0x10]
sub esi, 0x10
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x406b3e
cmp dword [esi + 0xc], 0
jl 0x406b2d
mov eax, dword [eax]
cmp eax, dword [esi]
jne 0x406b2d
push dword [ebp - 0x24]
call fcn.00407780
mov dword [ebp - 0x24], eax
add esp, 4
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406b1f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
add eax, 0x10
mov dword [esi + 0x18], eax
jmp 0x406b40
push dword [ecx - 0xc]
push ecx
lea ecx, [edx + 0x18]
call fcn.00402320
mov esi, dword [ebp - 0x14]
jmp 0x406b40
mov esi, edx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406b61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040fd50
test eax, eax
jne 0x406b81
push eax
lea ecx, [esi + 0x1c]
push 0x42861c
call fcn.00402320
jmp 0x406be4
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jl 0x406be4
push 0x4327bc
push esi
call fcn.00413fef
add esp, 8
test eax, eax
je 0x406be4
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x406be4
inc eax
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x10]
call fcn.00407260
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
push eax
mov byte [ebp - 4], 9
call fcn.00407120
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406be4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x78]
call fcn.0040fd50
test eax, eax
jne 0x4067b0
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], 1
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406c22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406c3f
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406c5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x406c7a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x78]
call fcn.00410030
mov eax, esi
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 - 0x78]
call fcn.004100e0
push dword [0x4397e0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x20], 0
jmp 0x406c02
lea ecx, [ebp - 0x78]
call fcn.004100e0
push dword [0x4397e0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
jmp 0x406c02