Function at 0x10005800
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100193d0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x1001e2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x1108], eax
je 0x10005852
xor eax, eax
mov dword [edi + 0x10e4], 0x3f3
mov dword [edi + 0x10e8], eax
mov dword [edi + 0x10ec], eax
jmp 0x10005d11
xor ebx, ebx
cmp dword [edi + 0x10f0], ebx
je 0x10005d11
mov dword [edi + 0x1104], ebx
mov dword [edi + 0x10f4], ebx
mov eax, dword [edi + 0xc]
mov dword [edi + 8], ebx
xor ecx, ecx
mov word [eax], cx
mov edx, dword [edi + 0x14]
xor eax, eax
mov word [edx], ax
mov edx, dword [ebp + 0xc]
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x10e4], ebx
mov dword [edi + 0x10e8], ebx
mov dword [edi + 0x10ec], ebx
mov dword [edi + 0x10cc], ebx
mov dword [edi + 0x10d0], ebx
mov dword [edi + 0x10d4], ebx
lea eax, [edi + 0x58]
mov dword [edi + 0x4c], ebx
call fcn.10001500
lea eax, [edi + 0x58]
call fcn.10001a50
mov ecx, dword [edi + 0x58]
push str.MEMORY_
push ecx
call fcn.10014a9f
add esp, 8
neg eax
sbb eax, eax
inc eax
push 0x12c
lea esi, [ebp - 0x2c]
mov dword [edi + 0x10f8], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.10001400
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax], dx
mov dword [ebp - 4], ebx
push 0x12c
lea esi, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.10001400
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov word [edx], cx
mov edx, dword [ebp + 8]
mov eax, esi
push eax
lea ecx, [ebp - 0x2c]
push ecx
push edx
mov byte [ebp - 4], 1
call fcn.10001ab0
mov eax, dword [edi + 0x58]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10005934
sub eax, edx
sar eax, 1
cmp eax, dword [edi + 0x5c]
jb 0x1000595d
push 0x1001ca50
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], str.The_string_has_no_terminating_null_character_
call fcn.1000cf14
cmp eax, 3
jb 0x10005cd8
mov eax, dword [ebp - 0x2c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10005970
sub eax, edx
sar eax, 1
cmp eax, dword [ebp - 0x28]
jb 0x10005999
push 0x1001ca50
lea ecx, [ebp + 0xc]
push ecx
mov dword [ebp + 0xc], str.The_string_has_no_terminating_null_character_
call fcn.1000cf14
cmp eax, 2
jb 0x10005cd8
mov eax, dword [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x100059b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100059b0
sub eax, edx
sar eax, 1
cmp eax, dword [ebp - 0x20]
jb 0x100059d9
push 0x1001ca50
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], str.The_string_has_no_terminating_null_character_
call fcn.1000cf14
cmp eax, 2
jb 0x10005cd8
mov eax, dword [edi + 0x60]
xor ecx, ecx
push 0x12c
lea esi, [ebp - 0x14]
mov word [eax], cx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call section..text
mov edx, dword [ebp - 0x14]
mov byte [edx], 0
mov byte [ebp - 4], 2
push 0x12c
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call section..text
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x10005a30
sub eax, ecx
sar eax, 1
lea ecx, [eax*4]
push ecx
lea esi, [ebp - 0x1c]
call section..text
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
push ebx
push ebx
mov ebx, dword [ebp - 0x1c]
push edx
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x14]
mov byte [eax + ebx], 0
mov eax, dword [ebp - 0x24]
mov byte [ecx], 0
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x10005a80
sub eax, ecx
sar eax, 1
lea edx, [eax*4]
push edx
lea esi, [ebp - 0x14]
call section..text
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
push 0
push 0
push eax
push esi
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0x10005eb0
push 0
mov byte [eax + esi], 0
mov edx, dword [edi + 0x10f0]
mov eax, dword [edi + 0x1114]
push ebx
push esi
push edx
call eax
add esp, 0x1c
test eax, eax
je 0x10005c36
lea esp, [esp]
mov eax, dword [edi + 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005af6
sub eax, edx
sar eax, 1
cmp eax, dword [edi + 0x64]
lea edx, [edi + 0x60]
jae 0x100059c4
test eax, eax
je 0x10005c36
lea eax, [ebp - 0x24]
call fcn.10001500
push ebx
mov byte [ebp - 4], 2
call fcn.1000a8ba
add esp, 4
push esi
mov byte [ebp - 4], 1
call fcn.1000a8ba
mov ecx, dword [edi + 0x60]
add esp, 4
xor edx, edx
xor ebx, ebx
push 0x12c
lea esi, [ebp - 0x14]
mov word [ecx], dx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call section..text
mov eax, dword [ebp - 0x14]
mov byte [eax], bl
mov byte [ebp - 4], 2
push 0x12c
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call section..text
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
mov byte [ecx], bl
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x10005b83
sub eax, ecx
sar eax, 1
lea edx, [eax*4]
push edx
lea esi, [ebp - 0x1c]
call section..text
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
push ebx
push ebx
mov ebx, dword [ebp - 0x1c]
push eax
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x14]
mov byte [eax + ebx], 0
mov eax, dword [ebp - 0x24]
mov byte [edx], 0
lea ecx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x10005bd0
sub eax, ecx
sar eax, 1
add eax, eax
add eax, eax
push eax
lea esi, [ebp - 0x14]
call section..text
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
push 0
push 0
push ecx
push esi
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0x10005eb0
push 0
mov byte [eax + esi], 0
mov eax, dword [edi + 0x10f0]
mov ecx, dword [edi + 0x1114]
push ebx
push esi
push eax
call ecx
add esp, 0x1c
test eax, eax
jne 0x10005af0
push ebx
mov byte [ebp - 4], 2
call fcn.1000a8ba
add esp, 4
push esi
mov byte [ebp - 4], 1
call fcn.1000a8ba
mov ebx, dword [edi + 8]
add esp, 4
mov eax, edi
call fcn.100062f0
cmp dword [edi + 0x10f4], 0
je 0x10005c73
cmp dword [edi + 8], 0
je 0x10005c73
mov eax, dword [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x10d4], 0
jne 0x10005c92
cmp dword [edi + 0x10e8], 0
jne 0x10005c92
cmp dword [edi + 0x10e4], 0
jne 0x10005c92
xor eax, eax
jmp 0x10005c97
mov eax, 1
xor ecx, ecx
test eax, eax
sete cl
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24]
push edx
mov esi, ecx
call fcn.1000a8ba
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
add esp, 4
push eax
call fcn.1000a8ba
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
push ecx
mov dword [edi + 0x10e4], 0x3ea
mov dword [edi + 0x10e8], ebx
mov dword [edi + 0x10ec], ebx
call fcn.1000a8ba
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
add esp, 4
push edx
call fcn.1000a8ba
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8