Function at 0x403510
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x1108], eax
je 0x40354e
mov dword [esi + 0x10e4], 0x3f3
mov dword [esi + 0x10e8], 0
mov dword [esi + 0x10ec], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 0x10f0], 0
je 0x403545
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esi + 0x1104], eax
xorps xmm0, xmm0
mov dword [esi + 0x10f4], 0
mov eax, dword [esi + 0xc]
mov dword [esi + 8], 0
push ebx
lea ebx, [esi + 0x10cc]
mov word [eax], cx
mov eax, dword [esi + 0x14]
push edi
push dword [ebp + 0xc]
lea edi, [esi + 0x58]
mov word [eax], cx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], ecx
movq qword [ebx], xmm0
mov dword [ebx + 8], ecx
mov dword [esi + 0x4c], ecx
mov ecx, edi
call fcn.00402100
push edi
call fcn.00406f60
push str.MEMORY_
push dword [edi]
call fcn.00415bed
add esp, 0xc
mov dword [ebp - 0x20], 0
neg eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x20]
sbb eax, eax
inc eax
push 0x12c
mov dword [esi + 0x10f8], eax
call fcn.004025e0
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
push 0x12c
mov word [eax], cx
lea ecx, [ebp - 0x18]
call fcn.004025e0
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.00406ea0
mov ecx, dword [edi]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403630
sub ecx, edx
sar ecx, 1
cmp ecx, dword [edi + 4]
jae 0x40383a
cmp ecx, 3
jb 0x403804
lea ecx, [ebp - 0x20]
call fcn.004047c0
cmp eax, 2
jb 0x403804
lea ecx, [ebp - 0x18]
call fcn.004047c0
cmp eax, 2
jb 0x403804
mov eax, dword [esi + 0x60]
lea edi, [esi + 0x60]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov word [eax], cx
lea ecx, [ebp - 0x10]
push 0x12c
call fcn.00402560
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push 0x12c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov byte [eax], 0
call fcn.00402560
push dword [ebp + 0x10]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 8]
push 0
push 0x403950
push 0
push dword [ebp - 0x20]
mov byte [eax], 0
call fcn.004034b0
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
push ebx
call fcn.004034b0
push eax
push dword [esi + 0x10f0]
mov eax, dword [esi + 0x1114]
call eax
add esp, 0x1c
test eax, eax
je 0x4037bb
mov eax, dword [edi]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403700
sub eax, edx
sar eax, 1
cmp eax, dword [edi + 4]
jae 0x40383a
test eax, eax
je 0x4037bb
push edi
lea ecx, [ebp - 0x18]
call fcn.00402100
push dword [ebp - 8]
call fcn.0040be90
push dword [ebp - 0x10]
call fcn.0040be90
mov eax, dword [edi]
xor ecx, ecx
add esp, 8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov word [eax], cx
lea ecx, [ebp - 0x10]
push 0x12c
call fcn.00402560
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push 0x12c
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov byte [eax], 0
call fcn.00402560
push dword [ebp + 0x10]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 8]
push 0
push 0x403950
push 0
push dword [ebp - 0x20]
mov byte [eax], 0
call fcn.004034b0
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
push eax
push ebx
call fcn.004034b0
push eax
push dword [esi + 0x10f0]
mov eax, dword [esi + 0x1114]
call eax
add esp, 0x1c
test eax, eax
jne 0x4036f6
push dword [ebp - 8]
call fcn.0040be90
push dword [ebp - 0x10]
call fcn.0040be90
add esp, 8
mov ecx, esi
push dword [esi + 8]
call fcn.00403fe0
cmp dword [esi + 0x10f4], 0
je 0x4037f0
cmp dword [esi + 8], 0
je 0x4037f0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi + 0x10cc]
call fcn.004046d0
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x40381e
mov dword [ebx + 0x18], 0x3ea
xor esi, esi
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.0040be90
push dword [ebp - 0x20]
call fcn.0040be90
add esp, 8
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x428af8
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], str.The_string_has_no_terminating_null_character_
push eax
call fcn.0040ddab
int3