Function at 0x410860
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5388f0
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x58bcc0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24c], eax
push 0x230
lea ecx, [ebp - 0x244]
push 0
push ecx
mov dword [ebp - 4], 1
call fcn.00516740
mov edx, dword [ebp + 0xc]
mov eax, dword [edx - 0xc]
xor ecx, ecx
inc eax
add esp, 0xc
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004133cb
mov ecx, dword [ebp + 0xc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x254], esi
mov edx, esi
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4108e1
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004133cb
mov ecx, dword [ebp + 0x10]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x250], ebx
mov edx, ebx
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x410920
push esi
call fcn.0040de80
mov esi, eax
add esp, 4
test esi, esi
je 0x410ae8
push esi
lea edx, [ebp - 0x244]
or ecx, 0xffffffff
call fcn.0040df40
mov eax, dword [ebp - 0x244]
add esp, 4
xor edi, edi
mov dword [ebp - 0x248], eax
test eax, eax
jle 0x4109c6
jmp 0x410970
push esi
lea edx, [ebp - 0x244]
mov ecx, edi
call fcn.0040df40
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax + 0x630]
add esp, 4
push 0
push 0x64
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi], 1
je 0x4109ae
mov dword [0x593b08], 0x80000
jmp 0x4109bd
mov ecx, dword [esi + 4]
push ebx
push edi
call fcn.0040db90
mov dword [0x593b08], eax
inc edi
cmp edi, dword [ebp - 0x248]
jl 0x410970
cmp dword [esi], 1
je 0x4109da
mov dword [0x593b08], 0x80000
jmp 0x410a5d
mov ebx, dword [esi + 4]
cmp dword [ebx + 4], 0xffffffff
je 0x4109ea
mov edi, dword [ebx]
call fcn.0040d3a0
mov edi, dword [ebx]
mov dword [ebx + 4], 0xffffffff
test edi, edi
je 0x410a35
cmp dword [edi + 0x7c], 0
je 0x410a02
call fcn.0040d3a0
mov eax, dword [edi]
mov dword [ebp - 0x248], eax
test eax, eax
je 0x410a2c
cmp byte [eax], 0
je 0x410a23
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x248]
push eax
call fcn.004133c0
add esp, 4
push edi
call fcn.0051368b
add esp, 4
push ebx
mov dword [ebx], 0
mov dword [0x593b08], 0
call fcn.004133c0
add esp, 4
push esi
call fcn.004133c0
mov ebx, dword [ebp - 0x250]
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.004133c0
add esp, 4
push ebx
call fcn.004133c0
mov edx, dword [ebp - 0x24c]
mov eax, dword [edx + 0x630]
add esp, 4
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410abe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410ae4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x410b33
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410b31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00513242
mov esp, ebp
pop ebp
ret 0xc