Function at 0x4061f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450321
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x460adc]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
mov eax, dword [0x460adc]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edx, dword [0x46466c]
test edx, edx
jne 0x406270
push 0x54
call fcn.00420ba1
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x98], 0
test eax, eax
je 0x40625b
push eax
call fcn.004015a0
jmp 0x40625d
xor eax, eax
mov edx, eax
mov dword [esp + 0x98], 0xffffffff
mov dword [0x46466c], edx
lea esi, [esp + 0x6c]
call fcn.00402170
mov dword [esp + 0x98], 1
cmp dword [eax + 0x14], 8
jb 0x40628e
mov edx, dword [eax]
jmp 0x406290
mov edx, eax
xor eax, eax
mov word [esp + 0x34], ax
mov ebx, 7
mov eax, edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], 0
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4062b0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x3c]
call fcn.00403280
mov esi, 8
mov byte [esp + 0x98], 3
cmp dword [esp + 0x80], esi
jb 0x4062ed
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004204e8
add esp, 4
mov dword [esp + 0x80], ebx
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], dx
cmp dword [esp + 0x44], ebx
jne 0x406321
cmp dword [esp + 0x48], esi
jb 0x40631a
mov eax, dword [esp + 0x34]
push eax
call fcn.004204e8
add esp, 4
xor al, al
jmp 0x406546
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x406530
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x48], 8
mov edx, dword [esp + 0x34]
jae 0x406352
lea edx, [esp + 0x34]
xor eax, eax
mov word [esp + 0x18], ax
mov eax, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406370
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00403280
push 1
push 0x456324
lea ecx, [esp + 0x20]
mov byte [esp + 0xa0], 4
call fcn.00402950
mov eax, dword [edi]
add eax, dword [esp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x4063b2
mov edx, dword [eax]
jmp 0x4063b4
mov edx, eax
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4063c0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00402950
push 1
push 0xffffffffffffffff
push 0x456324
lea ecx, [esp + 0x24]
call fcn.00402b70
mov ecx, dword [esp + 0x28]
dec ecx
cmp eax, ecx
mov eax, dword [esp + 0x18]
jne 0x40640e
cmp dword [esp + 0x2c], 8
jae 0x406404
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00406870
jmp 0x406420
cmp dword [esp + 0x2c], 8
jae 0x406419
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
inc ebx
xor edx, edx
mov eax, ebx
div ecx
xor edx, edx
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], dx
mov esi, eax
imul esi, esi, 0x58
add esi, 0xa
push 3
push 0x4568d4
lea ecx, [esp + 0x58]
mov byte [esp + 0xa0], 5
call fcn.00402950
cmp dword [esp + 0x2c], 8
mov edx, dword [esp + 0x18]
jae 0x406485
lea edx, [esp + 0x18]
mov eax, edx
lea ecx, [eax + 2]
mov dword [esp + 0x14], ecx
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406490
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x50]
sar eax, 1
push eax
push edx
call fcn.00402950
cmp dword [edi + 0x10], 0
je 0x4064c1
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx]
push esi
lea eax, [esp + 0x54]
push eax
call edx
mov esi, 8
cmp dword [esp + 0x64], esi
jb 0x4064d9
mov eax, dword [esp + 0x50]
push eax
call fcn.004204e8
add esp, 4
xor ecx, ecx
mov byte [esp + 0x98], 3
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], cx
cmp dword [esp + 0x2c], esi
jb 0x40650b
mov edx, dword [esp + 0x18]
push edx
call fcn.004204e8
add esp, 4
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
add dword [esp + 0x10], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x406343
cmp dword [esp + 0x48], 8
jb 0x406544
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004204e8
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.004204f3
mov esp, ebp
pop ebp
ret