Function at 0x4069c0
Capabilities:
Delete file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x444380]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 1
cmp dword [0x46ec34], 0
je 0x406a00
mov eax, dword [0x46ec34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x46ec34], 0
cmp dword [0x46ec38], 0
je 0x406a20
mov ecx, dword [0x46ec38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x46ec38], 0
cmp dword [0x46ec3c], 0
je 0x406a40
mov edx, dword [0x46ec3c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x46ec3c], 0
mov word [ebp - 0x214], 0
jmp 0x406a5d
mov ax, word [ebp - 0x214]
add ax, 1
mov word [ebp - 0x214], ax
movzx ecx, word [ebp - 0x214]
cmp ecx, 5
jge 0x406acb
movzx edx, word [ebp - 0x214]
cmp dword [edx*4 + 0x46ec20], 0
je 0x406a91
push 1
movzx eax, word [ebp - 0x214]
mov ecx, dword [eax*4 + 0x46ec20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
movzx edx, word [ebp - 0x214]
cmp dword [edx*4 + 0x46ec20], 0
je 0x406ac9
movzx eax, word [ebp - 0x214]
mov ecx, dword [eax*4 + 0x46ec20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x214]
mov dword [edx*4 + 0x46ec20], 0
jmp 0x406a4b
movzx eax, byte [ebp + 8]
test eax, eax
jne 0x406ad8
jmp 0x406cfb
push 0x46d150
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [ebp - 0x218], 0
jmp 0x406afe
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x218]
cmp edx, dword [0x46d21c]
jge 0x406c17
mov eax, dword [ebp - 0x218]
push eax
push str.bkgr_d.gif
push 0x200
lea ecx, [ebp - 0x210]
push ecx
call fcn.00414cec
add esp, 0x10
push 1
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x210]
push eax
call fcn.0040ddb0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x406b53
jmp 0x406c17
cmp dword [ebp - 8], 0
jne 0x406b65
mov dword [ebp - 4], 2
jmp 0x406c17
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], 0
je 0x406b94
mov edx, dword [ebp - 8]
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x220]
push eax
call fcn.00414c52
add esp, 4
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0x218]
push ecx
push str.bkgr_d.txt
push 0x200
lea edx, [ebp - 0x210]
push edx
call fcn.00414cec
add esp, 0x10
push 1
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.0040ddb0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
je 0x406bd4
jmp 0x406c17
cmp dword [ebp - 8], 0
jne 0x406be3
mov dword [ebp - 4], 2
jmp 0x406c17
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], 0
je 0x406c12
mov eax, dword [ebp - 8]
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
push ecx
call fcn.00414c52
add esp, 4
mov dword [ebp - 8], 0
jmp 0x406aef
cmp dword [0x46f008], 0
je 0x406c45
mov edx, dword [0x46f008]
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x228]
push eax
call fcn.00414c52
add esp, 4
mov dword [0x46f008], 0
cmp dword [0x46f00c], 0
je 0x406cf3
mov dword [ebp - 0x21c], 0
jmp 0x406c6d
mov ecx, dword [ebp - 0x21c]
add ecx, 1
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x21c]
cmp edx, dword [0x46f010]
jge 0x406cc5
mov eax, dword [ebp - 0x21c]
mov ecx, dword [0x46f00c]
cmp dword [ecx + eax*4], 0
je 0x406cc3
mov edx, dword [ebp - 0x21c]
mov eax, dword [0x46f00c]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x22c], ecx
mov edx, dword [ebp - 0x22c]
push edx
call fcn.00414c52
add esp, 4
mov eax, dword [ebp - 0x21c]
mov ecx, dword [0x46f00c]
mov dword [ecx + eax*4], 0
jmp 0x406c5e
cmp dword [0x46f00c], 0
je 0x406cf3
mov edx, dword [0x46f00c]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
push eax
call fcn.00414c52
add esp, 4
mov dword [0x46f00c], 0
xor ecx, ecx
jne 0x4069da
cmp dword [ebp - 8], 0
je 0x406d20
mov edx, dword [ebp - 8]
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x234]
push eax
call fcn.00414c52
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00414b5b
mov esp, ebp
pop ebp
ret