Function at 0x410820
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44f6b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46414c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [0x46ecec]
mov edx, dword [eax + 0xc]
mov ecx, 0x46ecec
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edi, str.96531d0333946ab8fd66a13f20caa045536d4d56570d0489
lea esi, [esp + 0x24]
mov dword [esp + 0x40], 0
call fcn.00423620
lea edi, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.004050a0
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4108a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], str.ba9ba8a0a1711aa8c8c3b99bd97347ce
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x40], 2
mov edi, dword [ecx]
lea esi, [esp + 0x28]
call fcn.00423620
mov byte [esp + 0x40], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebx - 0x10]
cmp eax, esi
je 0x410932
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x410921
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x410921
call fcn.00401850
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x410918
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x18], ebx
jmp 0x41092e
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x1c]
call fcn.004053c0
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410957
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x46ecec]
mov eax, dword [edx + 0xc]
mov ecx, 0x46ecec
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x40], 4
mov edx, dword [ebp]
mov edx, dword [edx]
lea eax, [esp + 0x30]
push eax
mov ecx, ebp
call edx
mov esi, eax
mov byte [esp + 0x40], 5
mov eax, dword [ebp]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call edx
mov byte [esp + 0x40], 6
mov ecx, dword [esi]
mov edx, dword [eax]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push ebx
push eax
lea edi, [esp + 0x24]
call fcn.004018c0
mov byte [esp + 0x50], 5
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4109d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4109fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x14], 0
je 0x410a81
mov edi, dword [esp + 0x48]
test edi, edi
je 0x410a81
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x410a81
cmp esi, 0xffffffff
je 0x410a81
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push ecx
mov ecx, 0x45b7b0
call fcn.00404a50
mov edx, dword [esp + 0x18]
push esi
push 1
push 0
push edx
lea ecx, [esp + 0x38]
xor edx, edx
call fcn.0041d8e0
add esp, 0x14
push esi
test eax, eax
je 0x410b1d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0
ja 0x410b2f
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410aa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [esp + 0x40], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ac7
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0x20]
add eax, 4
cmp eax, 0x46e8b0
mov dword [esp + 0x20], eax
jl 0x4108b0
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x410a81
mov ecx, edi
lea eax, [ebp + 0x14]
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x410b37
sub ecx, esi
sar ecx, 1
push edi
mov ebx, ecx
call fcn.004053c0
mov byte [esp + 0x40], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410bc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x410b07