Function at 0x4021f0
Capabilities:
Delete file

Disassembly:
sub esp, 0x18
mov eax, dword [0x4612b0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 2
je 0x40222b
sub eax, 2
je 0x40222b
sub eax, 4
je 0x40222b
xor ecx, ecx
jmp 0x402237
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 1
mov eax, 0x67b23a55
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x4f
jle 0x40225f
push 0x4f
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041ab40
call fcn.0041ab40
cmp dword [edi + 0x54], ebx
jbe 0x4022fe
xor edx, edx
mov eax, ebx
test bl, 1
jne 0x402291
mov ecx, dword [edi + 0x14]
div ecx
mov esi, edx
cmp esi, ecx
jbe 0x402281
call fcn.00439b40
cmp dword [edi + 0x18], 0x10
jb 0x40228c
mov ebp, dword [edi + 4]
jmp 0x4022af
lea ebp, [edi + 4]
jmp 0x4022af
mov ecx, dword [edi + 0x30]
div ecx
mov esi, edx
cmp esi, ecx
jbe 0x4022a1
call fcn.00439b40
cmp dword [edi + 0x34], 0x10
jb 0x4022ac
mov ebp, dword [edi + 0x20]
jmp 0x4022af
lea ebp, [edi + 0x20]
cmp ebx, dword [edi + 0x4c]
jbe 0x4022b9
call fcn.00439b40
cmp dword [edi + 0x50], 0x10
jb 0x4022c4
mov eax, dword [edi + 0x3c]
jmp 0x4022c7
lea eax, [edi + 0x3c]
mov al, byte [eax + ebx]
xor al, byte [esi + ebp]
mov byte [esp + 0x17], al
cmp ebx, dword [edi + 0x4c]
jbe 0x4022df
call fcn.00439b40
mov al, byte [esp + 0x17]
cmp dword [edi + 0x50], 0x10
jb 0x4022ea
mov ecx, dword [edi + 0x3c]
jmp 0x4022ed
lea ecx, [edi + 0x3c]
mov byte [ecx + ebx], al
inc ebx
cmp ebx, dword [edi + 0x54]
jb 0x402268
mov ebp, dword [esp + 0x20]
mov ebx, dword [edi + 0x4c]
lea eax, [ebp + 4]
xor ecx, ecx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], 0
mov esi, ebp
mov dword [esp + 0x18], eax
mov word [eax], cx
call fcn.00402ed0
mov eax, dword [ebp + 0x18]
mov edx, dword [esp + 0x18]
cmp eax, 8
jb 0x402336
mov esi, dword [edx]
mov dword [esp + 0x1c], esi
jmp 0x402340
mov dword [esp + 0x1c], edx
mov esi, edx
mov edx, dword [esp + 0x18]
test esi, esi
je 0x402368
cmp eax, 8
jb 0x40234d
mov ecx, dword [edx]
jmp 0x40234f
mov ecx, edx
cmp ecx, esi
ja 0x402368
cmp eax, 8
jb 0x40235c
mov eax, dword [edx]
jmp 0x40235e
mov eax, edx
mov ecx, dword [ebp + 0x14]
lea edx, [eax + ecx*2]
cmp esi, edx
jbe 0x40236d
call fcn.00439b40
mov ebx, dword [edi + 0x50]
lea eax, [edi + 0x3c]
cmp ebx, 0x10
jb 0x40237c
mov ecx, dword [eax]
jmp 0x40237e
mov ecx, eax
mov edx, dword [edi + 0x4c]
lea esi, [edx + ecx]
test esi, esi
je 0x4023a4
cmp ebx, 0x10
jb 0x402391
mov ecx, dword [eax]
jmp 0x402393
mov ecx, eax
cmp ecx, esi
ja 0x4023a4
cmp ebx, 0x10
jb 0x40239e
mov eax, dword [eax]
add edx, eax
cmp esi, edx
jbe 0x4023a9
call fcn.00439b40
mov edx, dword [edi + 0x50]
lea eax, [edi + 0x3c]
cmp edx, 0x10
jb 0x4023b8
mov ebx, dword [eax]
jmp 0x4023ba
mov ebx, eax
test ebx, ebx
je 0x4023dd
cmp edx, 0x10
jb 0x4023c7
mov ecx, dword [eax]
jmp 0x4023c9
mov ecx, eax
cmp ecx, ebx
ja 0x4023dd
cmp edx, 0x10
jb 0x4023d4
mov eax, dword [eax]
mov ecx, dword [edi + 0x4c]
add ecx, eax
cmp ebx, ecx
jbe 0x4023e2
call fcn.00439b40
mov ecx, esi
sub ecx, ebx
cmp ebp, 0xfffffffc
je 0x402427
mov edi, dword [ebp + 0x18]
mov eax, dword [esp + 0x18]
cmp edi, 8
jb 0x4023fb
mov edx, dword [eax]
jmp 0x4023fd
mov edx, eax
mov ebp, dword [esp + 0x1c]
lea ecx, [ebp + ecx*2]
mov ebp, dword [esp + 0x20]
mov ebp, dword [ebp + 0x14]
lea edx, [edx + ebp*2]
cmp ecx, edx
ja 0x40241e
cmp edi, 8
jb 0x40241a
mov eax, dword [eax]
cmp ecx, eax
jae 0x402423
call fcn.00439b40
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, ebx
cmp ebx, esi
je 0x402440
movsx dx, byte [eax]
mov word [ecx], dx
inc eax
add ecx, 2
cmp eax, esi
jne 0x402431
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.00439641
add esp, 0x18
ret 4