Function at 0x4205d4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4205dc
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4208e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4077d0]
call fcn.004037b4
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, 0x420900
call fcn.0041f68c
call fcn.0041f138
mov edx, dword [0x423154]
mov edx, dword [edx]
mov ecx, dword [0x4231b4]
add edx, dword [ecx]
mov ecx, dword [0x423228]
add edx, dword [ecx]
cmp eax, edx
jle 0x4208cd
mov eax, 0x420914
call fcn.0041f68c
push 0
mov eax, dword [0x423068]
push dword [eax]
push 0x420938
mov eax, dword [0x423144]
push dword [eax]
push 0x420944
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.0040491c
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
call fcn.0041edd0
mov edx, dword [ebp - 0x10]
mov ecx, 0x420954
mov eax, 0x420964
call fcn.0041fac4
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
mov edx, 0x420990
call fcn.004049a0
je 0x42086e
cmp byte [ebp - 1], 1
jne 0x42086e
mov eax, dword [0x423068]
push dword [eax]
push 0x420938
mov eax, dword [0x423144]
push dword [eax]
push 0x420944
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040491c
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
lea edx, [ebp - 0x1c]
call fcn.004114f0
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x42099c
call fcn.004048a8
mov eax, dword [ebp - 0x18]
call fcn.0041f68c
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 2
jle 0x420879
lea ecx, [ebp - 0x20]
xor edx, edx
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
mov eax, 0x4209bc
call fcn.00404b3c
test eax, eax
jne 0x420753
lea ecx, [ebp - 0x24]
mov edx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x24]
mov eax, 0x4209bc
call fcn.00404b3c
test eax, eax
je 0x420861
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
dec edx
lea ecx, [ebp - 0x28]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x28]
mov eax, 0x4209cc
call fcn.00404b3c
test eax, eax
jne 0x4207a3
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, eax
sub edx, 2
lea ecx, [ebp - 0x2c]
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x2c]
mov eax, 0x4209cc
call fcn.00404b3c
test eax, eax
je 0x420861
xor esi, esi
mov eax, 0x4209dc
call fcn.0041f68c
jmp 0x4207b2
inc esi
lea ecx, [ebp - 0x30]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x30]
mov eax, 0x4209bc
call fcn.00404b3c
test eax, eax
je 0x4207b1
inc esi
lea ecx, [ebp - 0x34]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x34]
call fcn.004109a0
mov edx, dword [0x4231b4]
mov dword [edx], eax
inc esi
mov eax, dword [0x423124]
xor edx, edx
mov dword [eax], edx
jmp 0x420842
lea ecx, [ebp - 0x38]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x38]
mov eax, 0x4209f4
call fcn.00404b3c
test eax, eax
je 0x420841
mov eax, dword [0x423124]
inc dword [eax]
lea ecx, [ebp - 0x3c]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x3c]
mov eax, dword [0x423124]
mov eax, dword [eax]
mov ecx, dword [0x4231a8]
lea eax, [ecx + eax*4 - 4]
call fcn.004045f8
inc esi
lea ecx, [ebp - 0x40]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x40]
mov eax, 0x4209cc
call fcn.00404b3c
test eax, eax
je 0x4207f8
jmp 0x420879
mov eax, dword [0x4231b4]
mov dword [eax], 0xb4
jmp 0x420879
mov eax, dword [0x4231b4]
mov dword [eax], 0xb4
call fcn.0041f138
mov edx, dword [0x423154]
mov dword [edx], eax
mov eax, 0x420a04
call fcn.0041f68c
mov eax, dword [0x423068]
push dword [eax]
push 0x420938
mov eax, dword [0x423144]
push dword [eax]
push 0x420944
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.0040491c
mov eax, dword [ebp - 0x44]
call fcn.00404a54
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov eax, 0x420a1c
call fcn.0041f68c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4208ef
lea eax, [ebp - 0x44]
mov edx, 0x10
call fcn.004045c8
ret