Function at 0x40aad0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x465160
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x484ea8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebx, ebx
cmp dword [esi + 0x1108], eax
je 0x40ab29
mov dword [esi + 0x10e4], 0x3f3
mov dword [esi + 0x10e8], ebx
mov dword [esi + 0x10ec], ebx
jmp 0x40ae89
cmp dword [esi + 0x10f0], ebx
je 0x40ae89
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1104], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10f4], ebx
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], ebx
mov word [ecx], bx
mov edx, dword [esi + 0x14]
mov word [edx], bx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
lea edi, [esi + 0x10cc]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
lea ecx, [esi + 0x58]
push eax
mov dword [esp + 0x1c], edi
mov dword [esi + 0x4c], ebx
call fcn.00407530
lea eax, [esi + 0x58]
push eax
call fcn.00407870
mov ecx, dword [esi + 0x58]
push 0x46d864
push ecx
call fcn.004646de
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
push 0x12c
lea ecx, [esp + 0x38]
mov dword [esi + 0x10f8], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.00407450
mov edx, dword [esp + 0x34]
mov word [edx], bx
push 0x12c
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00407450
mov eax, dword [esp + 0x2c]
mov word [eax], bx
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x54], 1
call fcn.004078d0
mov eax, dword [esi + 0x58]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ac10
sub eax, edx
sar eax, 1
cmp eax, dword [esi + 0x5c]
jb 0x40ac3b
push 0x47a2c8
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], str.The_string_has_no_terminating_null_character_
call fcn.0044a19b
cmp eax, 3
jb 0x40ae65
lea ecx, [esp + 0x34]
call fcn.00407410
cmp eax, 2
jb 0x40ae65
lea ecx, [esp + 0x2c]
call fcn.00407410
cmp eax, 2
jb 0x40ae65
mov edx, dword [esi + 0x60]
lea edi, [esi + 0x60]
push 0x12c
lea ecx, [esp + 0x28]
mov word [edx], bx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00407330
mov eax, dword [esp + 0x24]
mov byte [eax], bl
push 0x12c
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 2
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00407330
mov ecx, dword [esp + 0x1c]
mov byte [ecx], bl
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x34]
push edx
push ebx
push 0x40a4e0
push ebx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 3
call fcn.004073b0
mov ecx, dword [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.004073b0
mov edx, dword [esi + 0x10f0]
push eax
mov eax, dword [esi + 0x1114]
push edx
call eax
add esp, 0x1c
test eax, eax
je 0x40add0
mov eax, dword [edi]
lea edx, [eax + 2]
jmp 0x40ad00
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ad00
sub eax, edx
sar eax, 1
cmp eax, dword [edi + 4]
jae 0x40ae4e
cmp eax, ebx
je 0x40add0
push edi
lea ecx, [esp + 0x30]
call fcn.00407530
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004202af
mov edx, dword [esp + 0x28]
push edx
mov byte [esp + 0x50], 1
call fcn.004202af
mov eax, dword [edi]
add esp, 8
push 0x12c
lea ecx, [esp + 0x28]
mov word [eax], bx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00407330
mov ecx, dword [esp + 0x24]
mov byte [ecx], bl
push 0x12c
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 2
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00407330
mov edx, dword [esp + 0x1c]
mov byte [edx], bl
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x34]
push eax
push ebx
push 0x40a4e0
push ebx
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 3
call fcn.004073b0
mov edx, dword [esp + 0x3c]
push eax
push edx
lea ecx, [esp + 0x3c]
call fcn.004073b0
mov ecx, dword [esi + 0x1114]
push eax
mov eax, dword [esi + 0x10f0]
push eax
call ecx
add esp, 0x1c
test eax, eax
jne 0x40acf6
mov edx, dword [esp + 0x1c]
push edx
call fcn.004202af
mov eax, dword [esp + 0x28]
push eax
mov byte [esp + 0x50], 1
call fcn.004202af
mov ecx, dword [esi + 8]
add esp, 8
push ecx
mov ecx, esi
call fcn.00409960
cmp dword [esi + 0x10f4], ebx
je 0x40ae0e
cmp dword [esi + 8], ebx
je 0x40ae0e
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x18]
call fcn.00407ca0
mov esi, eax
mov eax, dword [esp + 0x2c]
neg esi
sbb esi, esi
push eax
add esi, 1
call fcn.004202af
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004202af
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x47a2c8
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], str.The_string_has_no_terminating_null_character_
call fcn.0044a19b
mov edx, dword [esp + 0x2c]
push edx
mov dword [edi + 0x18], 0x3ea
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
call fcn.004202af
mov eax, dword [esp + 0x38]
push eax
call fcn.004202af
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc