Function at 0x51399c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x5139a4
push ebx
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x513d28
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, byte [0x513d38]
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [0x522ba8]
mov eax, dword [eax]
call fcn.0049bda4
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.004139c4
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.004120f8
mov eax, dword [ebp - 0x2c]
mov ecx, 0x513d48
mov edx, 0x513d60
call fcn.0041a918
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.004075b8
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x513d78
call fcn.004068a8
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 4]
call fcn.00407590
mov eax, dword [ebp - 0x38]
call fcn.004136cc
test al, al
je 0x513a50
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 4]
call fcn.00407590
mov eax, dword [ebp - 0x3c]
call fcn.00407418
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 4]
call fcn.00407590
mov eax, dword [ebp - 0x40]
call fcn.004136cc
test al, al
jne 0x513ab9
xor eax, eax
push ebp
push 0x513ab2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, 0x513db4
call fcn.0049dd44
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x18]
call fcn.004247ec
lea eax, [ebp - 8]
push eax
push 0x513dd0
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.0041f0ac
add esp, 0x10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513ab9
ret
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4fc5f0]
call fcn.005028dc
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x3ac], ebx
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 8]
call fcn.00406f8c
mov edx, dword [ebp - 0x48]
mov eax, ebx
call fcn.0050440c
call fcn.00415b38
add esp, 0xfffffff8
fstp qword [esp]
wait
lea ecx, [ebp - 0x22]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1e]
call fcn.00415af0
push 0x513de8
lea edx, [ebp - 0x50]
movzx eax, word [ebp - 0x1e]
call fcn.00412ee8
push dword [ebp - 0x50]
lea edx, [ebp - 0x64]
movzx eax, word [ebp - 0x20]
call fcn.00412ee8
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 0x513dfc
call fcn.00407848
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
call fcn.004075f0
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x58]
mov edx, 2
call fcn.0040e464
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
call fcn.004075dc
push dword [ebp - 0x54]
lea edx, [ebp - 0x78]
movzx eax, word [ebp - 0x22]
call fcn.00412ee8
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 0x513dfc
call fcn.00407848
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
call fcn.004075f0
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x6c]
mov edx, 2
call fcn.0040e464
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
call fcn.004075dc
push dword [ebp - 0x68]
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.0040792c
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
add eax, 0x3a4
mov ecx, 0
call fcn.004075b8
mov dl, 1
mov eax, dword [0x42eb10]
call fcn.0043ab3c
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3ac]
xor ecx, ecx
mov edx, ebx
call fcn.005037c0
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x3a4]
call fcn.00407590
mov edx, dword [ebp - 0x7c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x513c55
movzx eax, byte [0x513e00]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x513e10
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x3a4]
push 0x513e2c
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.00406998
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
call fcn.00406f8c
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3ac]
mov cl, 1
call fcn.00502e00
mov eax, ebx
call fcn.004050b0
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x501048]
call fcn.00507e6c
mov ebx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x3a8], ebx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x3ac]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513d32
lea eax, [ebp - 0x88]
call fcn.00406450
lea eax, [ebp - 0x84]
call fcn.00406dd4
lea eax, [ebp - 0x80]
call fcn.0040a3f0
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.00407384
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.00406dec
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.00407384
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00406dec
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00407384
lea eax, [ebp - 0x48]
call fcn.00406dd4
lea eax, [ebp - 0x44]
call fcn.0040a3f0
lea eax, [ebp - 0x40]
mov edx, 7
call fcn.00407384
lea eax, [ebp - 0x18]
call fcn.0041f0a4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406474
ret