Function at 0x410c80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538da0
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x58bc40]
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.00516840
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.004138a0
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 0x410d01
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.004138a0
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 0x410d40
push esi
call fcn.0040e320
mov esi, eax
add esp, 4
test esi, esi
je 0x410f08
push esi
lea edx, [ebp - 0x244]
or ecx, 0xffffffff
call fcn.0040e3e0
mov eax, dword [ebp - 0x244]
add esp, 4
xor edi, edi
mov dword [ebp - 0x248], eax
test eax, eax
jle 0x410de6
jmp 0x410d90
push esi
lea edx, [ebp - 0x244]
mov ecx, edi
call fcn.0040e3e0
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax + 0x460]
add esp, 4
push 0
push 0x64
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi], 1
je 0x410dce
mov dword [0x593bc8], 0x80000
jmp 0x410ddd
mov ecx, dword [esi + 4]
push ebx
push edi
call fcn.0040e030
mov dword [0x593bc8], eax
inc edi
cmp edi, dword [ebp - 0x248]
jl 0x410d90
cmp dword [esi], 1
je 0x410dfa
mov dword [0x593bc8], 0x80000
jmp 0x410e7d
mov ebx, dword [esi + 4]
cmp dword [ebx + 4], 0xffffffff
je 0x410e0a
mov edi, dword [ebx]
call fcn.0040d840
mov edi, dword [ebx]
mov dword [ebx + 4], 0xffffffff
test edi, edi
je 0x410e55
cmp dword [edi + 0x7c], 0
je 0x410e22
call fcn.0040d840
mov eax, dword [edi]
mov dword [ebp - 0x248], eax
test eax, eax
je 0x410e4c
cmp byte [eax], 0
je 0x410e43
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x248]
push eax
call fcn.004138ab
add esp, 4
push edi
call fcn.00513b49
add esp, 4
push ebx
mov dword [ebx], 0
mov dword [0x593bc8], 0
call fcn.004138ab
add esp, 4
push esi
call fcn.004138ab
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.004138ab
add esp, 4
push ebx
call fcn.004138ab
mov edx, dword [ebp - 0x24c]
mov eax, dword [edx + 0x460]
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 0x410ede
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 0x410f04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x410f53
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 0x410f2b
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 0x410f51
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.00513700
mov esp, ebp
pop ebp
ret 0xc