Function at 0x41c8dd
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4209fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8ec
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 0x320
push edi
mov ecx, dword [esi + 0x1a3c]
mov ebx, dword [esi + 0x1a38]
cmp ecx, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], ebx
jl 0x41c904
mov dword [esi + 0x1a3c], eax
mov eax, dword [esi + 0x1a3c]
xor ebp, ebp
cmp eax, ebp
mov dword [esi + 0x1a30], ebp
mov dword [esi + 0x1a34], ebp
jle 0x41c94d
lea edi, [ebx + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41c934
push eax
push ebx
mov ecx, esi
call fcn.0041a350
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x1a3c]
inc ebp
add ebx, 0x934
cmp ebp, eax
jl 0x41c91c
mov al, byte [esp + 0x23]
xor ebp, ebp
push ebp
push ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.0041d030
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x1a3c]
mov dword [esp + 0x904], ebp
cmp eax, ebp
jle 0x41caf9
mov ecx, dword [esp + 0x10]
lea ebx, [ecx + 0x10]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov byte [ebx + 0x920], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41c9b2
mov eax, dword [esp + 0x18]
lea edx, [ebx - 0x10]
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.0041ce60
mov eax, dword [esi + 0x1a3c]
inc ebp
add ebx, 0x934
cmp ebp, eax
jl 0x41c986
mov eax, dword [esp + 0x1c]
mov ebx, 2
cmp eax, ebx
jb 0x41caf9
lea edx, [esp + 0x14]
lea ecx, [esp + 0x28]
push edx
call fcn.0041cda0
push fcn.0041cdd0
push 0x41ce30
push 0x10
lea eax, [esp + 0x48]
push 0xc
push eax
mov byte [esp + 0x918], 1
call fcn.004201f4
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x904], bl
xor ebx, ebx
test eax, eax
je 0x41cacd
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041ce20
mov edx, dword [eax]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0041ce20
mov edx, dword [eax]
lea ecx, [esp + 0x30]
push edx
call fcn.0041cef0
xor edi, edi
test ebx, ebx
jbe 0x41ca90
lea esi, [esp + 0x3c]
mov eax, dword [esi + 8]
test eax, eax
je 0x41ca78
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0041cf50
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.0041cec0
inc edi
add esi, 0xc
cmp edi, ebx
jb 0x41ca51
cmp edi, 0xf
jne 0x41ca90
lea edx, [esp + 0x28]
lea ecx, [esp + 0xf0]
push edx
call fcn.0041cf50
jmp 0x41caa6
lea ecx, [edi + edi*2]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + ecx*4 + 0x40]
call fcn.0041cec0
cmp edi, ebx
jne 0x41caa6
inc ebx
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x41ca17
test ebx, ebx
jbe 0x41cacd
lea edx, [ebx + ebx*2]
lea esi, [esp + edx*4 + 0x3c]
sub esi, 0xc
lea ecx, [esp + 0x14]
push esi
call fcn.0041cf50
dec ebx
jne 0x41cabd
push fcn.0041cdd0
push 0x10
lea eax, [esp + 0x44]
push 0xc
push eax
mov byte [esp + 0x914], 1
call fcn.00420100
lea ecx, [esp + 0x28]
mov byte [esp + 0x904], 0
call fcn.0041cdd0
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
add ecx, 0x28c
lea edx, [esp + 0x4fc]
push ecx
push str._s_result_sort_list.txt
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x4fc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x18]
xor ecx, ecx
xor edx, edx
mov eax, dword [esi]
cmp eax, esi
je 0x41cb4e
mov edi, dword [eax + 0x8a0]
mov ebp, dword [eax + 0x8a4]
mov eax, dword [eax]
add ecx, edi
add edx, ebp
cmp eax, esi
jne 0x41cb38
push edx
push ecx
lea ecx, [esp + 0x104]
push str.All_____Total_Attack:_d____________________Total_Defence:_d_n
push ecx
call ebx
lea edx, [esp + 0x10c]
lea eax, [esp + 0x50c]
push edx
push eax
push 1
call fcn.00419210
mov ecx, dword [esp + 0x34]
add esp, 0x1c
xor edx, edx
xor esi, esi
mov eax, dword [ecx]
cmp eax, ecx
je 0x41cb9d
mov edi, dword [eax + 0x8a0]
mov ebp, dword [eax + 0x8a4]
mov eax, dword [eax]
add edx, edi
add esi, ebp
cmp eax, ecx
jne 0x41cb87
push esi
push edx
lea ecx, [esp + 0x104]
push str.All_except_Creators_____Total_Attack:_d____________________Total_Defence:_d_n
push ecx
call ebx
lea edx, [esp + 0x10c]
lea eax, [esp + 0x50c]
push edx
push eax
push 1
call fcn.00419210
mov eax, dword [esp + 0x34]
add esp, 0x1c
xor ebp, ebp
mov esi, dword [eax]
cmp esi, eax
je 0x41cc7d
mov ecx, dword [esp + 0x24]
add ecx, 0x19c0
mov dword [esp + 0x10], ecx
inc ebp
cmp ebp, 0x15
jne 0x41cbf3
mov ebp, 1
jmp 0x41cbf8
cmp ebp, 1
jne 0x41cc00
add dword [esp + 0x10], 0x80
mov eax, dword [esp + 0x10]
lea edx, [esi + 0x494]
push ebp
push edx
lea edi, [esi + 0x394]
push eax
push 0x42aea4
push edi
call ebx
mov ecx, dword [esi + 0x8a4]
mov edx, dword [esi + 0x8a0]
add esp, 0x14
lea eax, [esi + 0x8ac]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push edi
push eax
push ebp
push ecx
lea edx, [esp + 0x114]
push str._03d____03d___20s_____s____10d_______10d
push edx
call ebx
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x51c]
push eax
push ecx
push 1
call fcn.00419210
mov ecx, dword [esp + 0x50]
add esp, 0x2c
lea edx, [esi + 8]
push edx
call fcn.004192b0
mov esi, dword [esi]
mov eax, dword [esp + 0x18]
cmp esi, eax
jne 0x41cbe6
mov edi, eax
mov esi, dword [edi]
cmp esi, edi
je 0x41ccb2
mov eax, esi
mov esi, dword [esi]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x20]
add esp, 4
dec ecx
cmp esi, edi
mov dword [esp + 0x1c], ecx
jne 0x41cc85
mov eax, dword [esp + 0x18]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x900]
add esp, 4
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8f8
ret