Function at 0x41b380
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41f788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x424038]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
mov dword [esp + 0x1c], 0
mov ecx, 0x105
jg 0x41b3c0
cmp dword [eax - 4], ecx
jge 0x41b417
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x41b3c9
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00410180
test eax, eax
je 0x41b417
mov edi, dword [esp + 0x10]
lea ecx, [ebp + 1]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov eax, dword [0x42403c]
cmp ebx, eax
je 0x41b413
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b413
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.004199b0
mov edx, dword [esp + 0x14]
add esp, 4
mov eax, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp eax, 1
jle 0x41b462
lea ecx, [esp + 0x10]
call fcn.004105b0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.00410180
test eax, eax
je 0x41b462
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x10]
inc ecx
add esi, 0xc
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov byte [eax + edx], 0
mov eax, 0x424730
test eax, eax
je 0x41b48e
push 0x424730
call esi
push 0x424730
push eax
lea ecx, [esp + 0x18]
call fcn.004102b0
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x41b4b5
mov edx, dword [eax - 4]
test edx, edx
jge 0x41b50c
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x41b4be
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00410180
test eax, eax
je 0x41b50c
mov edi, dword [esp + 0x10]
lea ecx, [ebp + 1]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebp
mov eax, dword [0x42403c]
cmp ebx, eax
je 0x41b508
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b508
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
lea esi, [ecx - 0xc]
cmp eax, 1
jle 0x41b555
lea ecx, [esp + 0x10]
call fcn.004105b0
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push edx
call fcn.00410180
test eax, eax
je 0x41b555
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x10]
inc ecx
add esi, 0xc
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [edx - 8], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x10], 0xffffffff
pop ebx
mov byte [eax + ecx], 0
mov eax, dword [esp]
mov ecx, dword [0x42403c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41b5aa
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b5aa
mov eax, dword [esp]
add eax, 0xfffffff4
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret