Function at 0x41b0c8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov ecx, dword [ebp + 8]
xor edx, edx
xor eax, eax
mov dword [ebp - 4], edx
cmp dword [ebp + 0x28], 2
push ebx
setne al
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], edx
mov ebx, edx
mov dword [ebp - 0x10], ebx
push esi
lea eax, [eax*8 + 0x18]
mov esi, edx
mov dword [ebp - 0x18], eax
push edi
mov edi, edx
mov dword [ebp - 0xc], edi
test ecx, ecx
je 0x41b119
push 0x4958fc
push ecx
call fcn.00477d52
pop ecx
mov edi, eax
pop ecx
mov dword [ebp - 0xc], edi
jmp 0x41b13c
shr eax, 3
imul eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0x14]
add eax, 0x8000
push eax
push edx
push dword [0x4b55a0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test edi, edi
jne 0x41b148
test ebx, ebx
je 0x41b3eb
xor ebx, ebx
push ebx
push ebx
push ebx
push str.1.6.37
call fcn.0042b9f0
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x41b39c
push 0x40
push 0x487a30
push eax
call fcn.00426cd0
push ebx
push eax
call fcn.00487a50
add esp, 0x14
test eax, eax
je 0x41b1cd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0042bab0
pop ecx
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x41b19d
push dword [ebp - 0x14]
call fcn.0041fd42
pop ecx
cmp dword [ebp - 0xc], ebx
je 0x41b1b6
push dword [ebp - 0xc]
call fcn.004122ef
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41b1c6
push dword [ebp - 0x10]
push ebx
push dword [0x4b55a0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x41b3ed
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x41b1e1
push edi
push dword [ebp - 4]
call fcn.00425610
pop ecx
pop ecx
jmp 0x41b1f3
push dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call fcn.0041b41e
add esp, 0xc
push dword [ebp - 4]
call fcn.00424400
push 8
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.0042bba0
push 9
push dword [ebp - 4]
call fcn.0042bb80
mov ecx, dword [ebp + 0x24]
add esp, 0x18
mov esi, dword [ebp + 0x14]
lea eax, [ecx - 1]
cmp eax, 7
ja 0x41b30c
push dword [ebp + 0x20]
xor eax, eax
push ecx
push dword [ebp + 0x18]
inc eax
push dword [ebp - 0x18]
shl eax, cl
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
push dword [ebp + 0xc]
call fcn.0041fb7c
mov ebx, eax
xor eax, eax
push eax
push eax
push eax
push 3
push dword [ebp + 0x24]
mov dword [ebp - 0x14], ebx
push esi
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0042c870
mov ecx, dword [ebp - 0x1c]
add esp, 0x40
test ecx, ecx
jle 0x41b29a
lea edx, [ebp - 0x323]
mov esi, ecx
lea edi, [ebx + 0x51]
mov al, byte [edi + 1]
mov byte [edx - 1], al
mov al, byte [edi]
lea edi, [edi + 4]
mov byte [edx], al
lea edx, [edx + 3]
mov al, byte [edi - 5]
mov byte [edx - 2], al
sub esi, 1
jne 0x41b279
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 0x14]
push ecx
lea eax, [ebp - 0x324]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0042c940
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0042bea0
add esp, 0x18
test byte [ebp + 0x1c], 2
jne 0x41b305
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x41b2e6
mov edi, dword [ebp + 0x14]
push esi
push ebx
call fcn.0041fd8e
push eax
push dword [ebp - 4]
call fcn.0042c2f0
add esp, 0x10
inc esi
cmp esi, edi
jl 0x41b2cb
mov edi, dword [ebp - 0xc]
push ebx
call fcn.0041fd42
pop ecx
jmp 0x41b37c
push esi
push ebx
call fcn.0041fd8e
push eax
push dword [ebp - 4]
call fcn.0042c2f0
add esp, 0x10
sub esi, 1
jns 0x41b2f2
jmp 0x41b2e6
push ebx
push ebx
push ebx
push dword [ebp + 0x28]
push 8
push esi
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0042c870
push dword [ebp - 4]
call fcn.0042b840
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0042bea0
add esp, 0x30
test byte [ebp + 0x1c], 2
je 0x41b362
lea ebx, [esi - 1]
imul ebx, dword [ebp + 0x18]
add ebx, dword [ebp + 0xc]
test esi, esi
jle 0x41b37c
push ebx
push dword [ebp - 4]
call fcn.0042c2f0
sub ebx, dword [ebp + 0x18]
pop ecx
pop ecx
sub esi, 1
jne 0x41b34d
jmp 0x41b37c
mov ebx, dword [ebp + 0xc]
test esi, esi
jle 0x41b37c
push ebx
push dword [ebp - 4]
call fcn.0042c2f0
add ebx, dword [ebp + 0x18]
pop ecx
pop ecx
sub esi, 1
jne 0x41b369
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0042bd20
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0042bab0
xor esi, esi
add esp, 0x10
inc esi
xor ebx, ebx
test edi, edi
je 0x41b3b6
push edi
call fcn.004122ef
pop ecx
test esi, esi
jne 0x41b3eb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41b3eb
test esi, esi
je 0x41b3db
push 1
push dword [ebp - 0x20]
call fcn.004214b0
mov edi, eax
test edi, edi
je 0x41b3db
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push edi
call fcn.00414790
add esp, 0xc
mov esi, edi
push dword [ebp - 0x10]
push ebx
push dword [0x4b55a0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x24