Function at 0x40c0e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490400
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b6798]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x1108], eax
je 0x40c136
xor eax, eax
mov dword [ebx + 0x10e4], 0x3f3
mov dword [ebx + 0x10e8], eax
mov dword [ebx + 0x10ec], eax
jmp 0x40c4f9
xor edi, edi
cmp dword [ebx + 0x10f0], edi
je 0x40c4f9
mov dword [ebx + 0x1104], edi
mov dword [ebx + 0x10f4], edi
mov eax, dword [ebx + 0xc]
mov dword [ebx + 8], edi
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebx + 0x14]
xor eax, eax
mov word [edx], ax
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x10e4], edi
mov dword [ebx + 0x10e8], edi
mov dword [ebx + 0x10ec], edi
mov dword [ebx + 0x10cc], edi
mov dword [ebx + 0x10d0], edi
mov dword [ebx + 0x10d4], edi
lea eax, [ebx + 0x58]
mov dword [ebx + 0x4c], edi
call fcn.00409fa0
lea eax, [ebx + 0x58]
call fcn.0040a530
mov ecx, dword [ebx + 0x58]
push str.MEMORY_
push ecx
call fcn.004760ec
add esp, 8
neg eax
sbb eax, eax
inc eax
push 0x12c
lea esi, [ebp - 0x30]
mov dword [ebx + 0x10f8], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
call fcn.00409ee0
mov eax, dword [ebp - 0x30]
xor edx, edx
mov word [eax], dx
mov dword [ebp - 4], edi
push 0x12c
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call fcn.00409ee0
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov word [edx], cx
mov edx, dword [ebp + 0xc]
mov eax, esi
push eax
lea ecx, [ebp - 0x30]
push ecx
push edx
mov byte [ebp - 4], 1
call fcn.0040a590
mov eax, dword [ebx + 0x58]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x40c220
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c220
sub eax, edx
sar eax, 1
cmp eax, dword [ebx + 0x5c]
jb 0x40c249
push 0x4ac624
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], str.The_string_has_no_terminating_null_character_
call fcn.0047854f
cmp eax, 3
jb 0x40c4cb
mov eax, dword [ebp - 0x30]
lea edx, [eax + 2]
jmp 0x40c260
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c260
sub eax, edx
sar eax, 1
cmp eax, dword [ebp - 0x2c]
jb 0x40c289
push 0x4ac624
lea ecx, [ebp + 8]
push ecx
mov dword [ebp + 8], str.The_string_has_no_terminating_null_character_
call fcn.0047854f
cmp eax, 2
jb 0x40c4cb
mov eax, dword [ebp - 0x28]
lea edx, [eax + 2]
jmp 0x40c2a0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40c2a0
sub eax, edx
sar eax, 1
cmp eax, dword [ebp - 0x24]
jb 0x40c2c9
push 0x4ac624
lea edx, [ebp + 8]
push edx
mov dword [ebp + 8], str.The_string_has_no_terminating_null_character_
call fcn.0047854f
cmp eax, 2
jb 0x40c4cb
mov eax, dword [ebx + 0x60]
xor ecx, ecx
push 0x12c
lea esi, [ebp - 0x20]
mov word [eax], cx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.00409d20
mov edx, dword [ebp - 0x20]
mov byte [edx], 0
mov byte [ebp - 4], 2
push 0x12c
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00409d20
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
push edi
push edi
push 0x40c690
mov byte [ebp - 4], 3
push edi
mov edi, dword [ebp - 0x30]
mov eax, esi
call fcn.00409dc0
mov edi, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
call fcn.00409dc0
mov ecx, dword [ebx + 0x10f0]
mov edx, dword [ebx + 0x1114]
push eax
push ecx
call edx
add esp, 0x1c
test eax, eax
je 0x40c41a
lea ecx, [ecx]
mov eax, dword [ebx + 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c356
sub eax, edx
sar eax, 1
cmp eax, dword [ebx + 0x64]
jae 0x40c274
xor edi, edi
cmp eax, edi
je 0x40c43a
lea edx, [ebx + 0x60]
lea eax, [ebp - 0x28]
call fcn.00409fa0
mov eax, dword [ebp - 0x18]
push eax
call fcn.00473f95
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add esp, 4
push ecx
call fcn.00473f95
mov edx, dword [ebx + 0x60]
add esp, 4
xor eax, eax
push 0x12c
lea esi, [ebp - 0x20]
mov word [edx], ax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.00409d20
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 0
mov byte [ebp - 4], 2
push 0x12c
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.00409d20
mov edx, dword [ebp - 0x18]
mov byte [edx], 0
push edi
push edi
push 0x40c690
mov byte [ebp - 4], 3
push edi
mov edi, dword [ebp - 0x30]
mov eax, esi
call fcn.00409dc0
mov edi, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
call fcn.00409dc0
mov ecx, dword [ebx + 0x1114]
push eax
mov eax, dword [ebx + 0x10f0]
push eax
call ecx
add esp, 0x1c
test eax, eax
jne 0x40c350
mov edx, dword [ebp - 0x18]
push edx
call fcn.00473f95
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add esp, 4
push eax
call fcn.00473f95
add esp, 4
xor edi, edi
jmp 0x40c456
mov edx, dword [ebp - 0x18]
push edx
call fcn.00473f95
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x20]
add esp, 4
push eax
call fcn.00473f95
add esp, 4
mov eax, dword [ebx + 8]
mov esi, ebx
call fcn.0040cad0
cmp dword [ebx + 0x10f4], edi
je 0x40c477
cmp dword [ebx + 8], edi
je 0x40c477
mov ecx, dword [ebx + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebx + 0x10d4], edi
jne 0x40c493
cmp dword [ebx + 0x10e8], edi
jne 0x40c493
cmp dword [ebx + 0x10e4], edi
jne 0x40c493
xor esi, esi
jmp 0x40c498
mov esi, 1
mov edx, dword [ebp - 0x28]
push edx
call fcn.00473f95
mov eax, dword [ebp - 0x30]
add esp, 4
push eax
call fcn.00473f95
xor eax, eax
add esp, 4
cmp esi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x28]
push ecx
mov dword [ebx + 0x10e4], 0x3ea
mov dword [ebx + 0x10e8], edi
mov dword [ebx + 0x10ec], edi
call fcn.00473f95
mov edx, dword [ebp - 0x30]
add esp, 4
push edx
call fcn.00473f95
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc