Function at 0x406050
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4235a6
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
push ebx
push esi
push edi
mov eax, dword [0x42e6dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x14], eax
sub esp, 8
lea ecx, [ebp - 0xd8]
push 0x20
push eax
call fcn.00402020
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ecx + 4]
test byte [ebp + eax - 0xcc], 6
je 0x4060b4
xor bl, bl
jmp 0x40631b
push 2
sub esp, 8
lea ecx, [ebp - 0xd8]
call fcn.00401e30
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00401f50
mov esi, dword [eax + 8]
add esi, dword [eax]
push 0
sub esp, 8
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x10], esi
call fcn.00401e30
push esi
call fcn.0040b03f
mov ebx, eax
mov eax, esi
cdq
mov ecx, eax
add esp, 4
mov eax, edx
push eax
push ecx
mov dword [ebp - 0x18], ecx
push ebx
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0x1c], eax
call fcn.00401cf0
lea ecx, [ebp - 0xc8]
call fcn.00402ea0
test eax, eax
jne 0x406155
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xd8]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x406143
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x406155
push 0
call fcn.00404ab0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0x40618c
mov ecx, edi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406170
sub ecx, edx
mov eax, esi
xor edx, edx
div ecx
inc esi
mov al, byte [edx + edi]
xor byte [esi + ebx - 1], al
cmp esi, dword [ebp - 0x10]
jb 0x406165
sub esp, 0xc
lea ecx, [ebp - 0x180]
push dword [ebp - 0x14]
call fcn.00402a20
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x180]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0x174], 6
je 0x4061c1
push ebx
call fcn.0040bd80
add esp, 4
xor bl, bl
jmp 0x40621f
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x180]
push dword [ebp - 0x18]
push ebx
call fcn.00401b90
lea ecx, [ebp - 0x17c]
call fcn.00402ea0
test eax, eax
jne 0x406214
mov eax, dword [ebp - 0x180]
lea ecx, [ebp - 0x180]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x406202
or eax, 4
and eax, 0x17
mov dword [ecx + 0xc], eax
test dword [ecx + 0x10], eax
je 0x406214
push 0
call fcn.00404ab0
push ebx
call fcn.0040bd80
add esp, 4
mov bl, 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x180]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x180], 0x42a95c
mov eax, dword [ebp - 0x180]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x184], eax
cmp dword [ebp - 0x12c], 0
mov dword [ebp - 0x17c], 0x42a9c4
je 0x40628d
mov edx, dword [ebp - 0x170]
lea eax, [ebp - 0x138]
cmp dword [edx], eax
jne 0x40628d
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x140]
mov dword [edx], eax
mov eax, dword [ebp - 0x160]
mov dword [eax], ecx
mov eax, dword [ebp - 0x150]
sub ecx, ecx
mov dword [eax], ecx
cmp byte [ebp - 0x130], 0
je 0x4062a1
lea ecx, [ebp - 0x17c]
call fcn.00402ea0
mov esi, dword [ebp - 0x148]
mov dword [ebp - 0x17c], 0x42a984
test esi, esi
je 0x4062d5
mov ecx, dword [esi]
test ecx, ecx
je 0x4062cc
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4062cc
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push esi
call fcn.0040bee9
add esp, 4
mov eax, dword [ebp - 0x180]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0x180], 0x42a96c
mov eax, dword [ebp - 0x180]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x184], eax
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x42ab20
call fcn.0040afc0
mov ecx, dword [ebp - 0xd8]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ecx + 4]
mov dword [ebp + eax - 0xd8], 0x42aa04
mov eax, dword [ebp - 0xd8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xdc], eax
cmp dword [ebp - 0x78], 0
mov dword [ebp - 0xc8], 0x42a9c4
je 0x406383
mov edx, dword [ebp - 0xbc]
lea eax, [ebp - 0x84]
cmp dword [edx], eax
jne 0x406383
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x8c]
mov dword [edx], eax
mov eax, dword [ebp - 0xac]
mov dword [eax], ecx
mov eax, dword [ebp - 0x9c]
sub ecx, ecx
mov dword [eax], ecx
cmp byte [ebp - 0x7c], 0
je 0x406394
lea ecx, [ebp - 0xc8]
call fcn.00402ea0
mov esi, dword [ebp - 0x94]
mov dword [ebp - 0xc8], 0x42a984
test esi, esi
je 0x4063c8
mov ecx, dword [esi]
test ecx, ecx
je 0x4063bf
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4063bf
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
push esi
call fcn.0040bee9
add esp, 4
mov eax, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd8], 0x42aa14
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x68]
mov edx, dword [ecx + 4]
push eax
lea ecx, [edx - 0x18]
mov dword [ebp + edx - 0xdc], ecx
mov dword [ebp - 0x68], 0x42ab20
call fcn.0040afc0
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret