Function at 0x41b118
Capabilities:
Delete file
Get file size
Set file attributes

Disassembly:
push 0x24
mov eax, 0x4705b4
call fcn.00450afd
xor ebx, ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [edi + 0x54]
mov dword [edi + 0x38], eax
mov dword [ebp - 0x18], ebx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
jne 0x41b15c
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 3
jl 0x41b138
add esi, 0x1c
call fcn.00416993
push 5
pop eax
jmp 0x41b403
add esi, 0x1c
call fcn.00416993
mov esi, edi
call fcn.0041bdc9
push 0x64
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x41b17e
push 0xd
jmp 0x41b156
xor esi, esi
inc esi
mov dword [ebp - 0x30], esi
cmp dword [edi + 0x30], ebx
je 0x41b1b5
push dword [edi + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.0041b409
push dword [eax]
call esi
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.00401464
mov dword [edi + 0x30], ebx
jmp 0x41b35d
push 0
push 0x80
push 3
push 0
push esi
lea ebx, [edi + 0x44]
mov eax, dword [ebx]
push SysReAllocString
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x41b2c0
cmp dword [edi + 0x6c], 0
je 0x41b20f
lea esi, [ebp - 0x18]
mov eax, edi
call fcn.0041c471
and dword [ebp - 4], 0
push eax
mov ecx, 0x47cfd0
mov dword [ebp - 0x28], 1
call fcn.00401e71
mov byte [ebp - 0x11], 1
test eax, eax
jne 0x41b213
mov byte [ebp - 0x11], 0
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x28], 1
je 0x41b228
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401464
cmp byte [ebp - 0x11], 0
je 0x41b295
mov esi, ebx
call fcn.00414226
push eax
lea ecx, [ebp - 0x18]
call fcn.0041c48a
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x41b284
lea esi, [ebp - 0x28]
mov eax, edi
call fcn.0041c471
mov byte [ebp - 4], 2
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.00401e71
mov ebx, eax
mov eax, dword [ebp - 0x28]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.00401464
test bl, bl
je 0x41b284
and dword [ebp - 0x20], 0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401464
jmp 0x41b2a3
mov ecx, edi
call fcn.0041b05a
test eax, eax
jne 0x41b2a3
and dword [ebp - 0x20], eax
xor ebx, ebx
cmp dword [ebp - 0x2c], ebx
je 0x41b2b3
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], ebx
jne 0x41b2c4
xor eax, eax
inc eax
jmp 0x41b403
xor ebx, ebx
jmp 0x41b2c7
xor esi, esi
inc esi
mov eax, dword [edi + 0x54]
cmp dword [eax + 0x74], ebx
je 0x41b35d
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.0041b409
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push esi
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
call fcn.00401464
cmp ebx, 0xffffffff
je 0x41b35d
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41b34c
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
imul eax, eax, 0x18
add eax, 4
cdq
add eax, dword [ecx + 0x88]
adc edx, dword [ecx + 0x8c]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jne 0x41b34c
mov eax, dword [ebp - 0x20]
cmp eax, edx
jne 0x41b34c
mov esi, edi
call fcn.0041b64a
test eax, eax
je 0x41b34c
and dword [ebp - 0x30], 0
test ebx, ebx
je 0x41b357
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0
je 0x41b3c7
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
imul eax, eax, 0x18
add eax, 4
cdq
mov ebx, edx
mov edx, dword [ecx + 0x88]
mov esi, eax
mov eax, dword [ecx + 0x8c]
add esi, edx
adc ebx, eax
test eax, eax
jl 0x41b38e
jg 0x41b388
test edx, edx
jb 0x41b38e
cmp dword [ecx + 0x74], 0
jne 0x41b392
xor esi, esi
xor ebx, ebx
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.0041b409
mov eax, dword [eax]
push ebx
push esi
push eax
call fcn.0041968c
mov esi, eax
mov eax, dword [ebp - 0x30]
add esp, 0xc
add eax, 0xfffffff0
call fcn.00401464
test esi, esi
je 0x41b3c7
xor eax, eax
cmp esi, 2
sete al
add eax, 9
jmp 0x41b403
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.0041b409
push 2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00401464
mov eax, edi
call fcn.0041b44a
test eax, eax
jne 0x41b3f8
push 6
jmp 0x41b156
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x38], eax
xor eax, eax
call fcn.00450b9c
ret