Function at 0x422710
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5460e0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x595978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebx + 0x1108], eax
je 0x422762
xor eax, eax
mov dword [ebx + 0x10e4], 0x3f3
mov dword [ebx + 0x10e8], eax
mov dword [ebx + 0x10ec], eax
jmp 0x422b18
xor edi, edi
cmp dword [ebx + 0x10f0], edi
je 0x422b18
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 + 0xc]
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.004219b0
lea eax, [ebx + 0x58]
call fcn.00421e00
mov ecx, dword [ebx + 0x58]
push str.MEMORY_
push ecx
call fcn.0053d222
add esp, 8
neg eax
sbb eax, eax
inc eax
push 0x12c
lea esi, [ebp - 0x2c]
mov dword [ebx + 0x10f8], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.004218b0
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov word [eax], dx
mov dword [ebp - 4], edi
push 0x12c
lea esi, [ebp - 0x24]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call fcn.004218b0
mov edx, dword [ebp - 0x24]
xor ecx, ecx
mov word [edx], cx
mov ecx, dword [ebp + 8]
mov eax, esi
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00421e60
mov eax, dword [ebx + 0x58]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x422842
sub eax, edx
sar eax, 1
cmp eax, dword [ebx + 0x5c]
jb 0x42286b
push 0x58c4e0
lea ecx, [ebp + 0xc]
push ecx
mov dword [ebp + 0xc], str.The_string_has_no_terminating_null_character_
call fcn.004a60bb
cmp eax, 3
jb 0x422aea
mov eax, dword [ebp - 0x2c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x422880
sub eax, edx
sar eax, 1
cmp eax, dword [ebp - 0x28]
jb 0x4228a9
push 0x58c4e0
lea edx, [ebp + 0xc]
push edx
mov dword [ebp + 0xc], str.The_string_has_no_terminating_null_character_
call fcn.004a60bb
cmp eax, 2
jb 0x422aea
mov eax, dword [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x4228c0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4228c0
sub eax, edx
sar eax, 1
cmp eax, dword [ebp - 0x20]
jb 0x4228e9
push 0x58c4e0
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], str.The_string_has_no_terminating_null_character_
call fcn.004a60bb
cmp eax, 2
jb 0x422aea
mov ecx, dword [ebx + 0x60]
xor edx, edx
push 0x12c
lea esi, [ebp - 0x1c]
mov word [ecx], dx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.00421710
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0
mov byte [ebp - 4], 2
push 0x12c
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.00421710
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0
push edi
push edi
push 0x422df0
mov byte [ebp - 4], 3
push edi
mov edi, dword [ebp - 0x2c]
mov eax, esi
call fcn.004217b0
mov edi, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
call fcn.004217b0
mov edx, dword [ebx + 0x10f0]
push eax
mov eax, dword [ebx + 0x1114]
push edx
call eax
add esp, 0x1c
test eax, eax
je 0x422a3a
lea ecx, [ecx]
mov eax, dword [ebx + 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422976
sub eax, edx
sar eax, 1
cmp eax, dword [ebx + 0x64]
jae 0x422894
xor edi, edi
cmp eax, edi
je 0x422a5a
lea edx, [ebx + 0x60]
lea eax, [ebp - 0x24]
call fcn.004219b0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0049cf8e
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1c]
add esp, 4
push edx
call fcn.0049cf8e
mov eax, dword [ebx + 0x60]
add esp, 4
xor ecx, ecx
push 0x12c
lea esi, [ebp - 0x1c]
mov word [eax], cx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.00421710
mov edx, dword [ebp - 0x1c]
mov byte [edx], 0
mov byte [ebp - 4], 2
push 0x12c
lea esi, [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.00421710
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
push edi
push edi
push 0x422df0
mov byte [ebp - 4], 3
push edi
mov edi, dword [ebp - 0x2c]
mov eax, esi
call fcn.004217b0
mov edi, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
call fcn.004217b0
mov ecx, dword [ebx + 0x10f0]
mov edx, dword [ebx + 0x1114]
push eax
push ecx
call edx
add esp, 0x1c
test eax, eax
jne 0x422970
mov eax, dword [ebp - 0x14]
push eax
call fcn.0049cf8e
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add esp, 4
push ecx
call fcn.0049cf8e
add esp, 4
xor edi, edi
jmp 0x422a76
mov eax, dword [ebp - 0x14]
push eax
call fcn.0049cf8e
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
add esp, 4
push ecx
call fcn.0049cf8e
add esp, 4
mov eax, dword [ebx + 8]
mov esi, ebx
call fcn.00423220
cmp dword [ebx + 0x10f4], edi
je 0x422a97
cmp dword [ebx + 8], edi
je 0x422a97
mov edx, dword [ebx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebx + 0x10d4], edi
jne 0x422ab3
cmp dword [ebx + 0x10e8], edi
jne 0x422ab3
cmp dword [ebx + 0x10e4], edi
jne 0x422ab3
xor esi, esi
jmp 0x422ab8
mov esi, 1
mov eax, dword [ebp - 0x24]
push eax
call fcn.0049cf8e
mov ecx, dword [ebp - 0x2c]
add esp, 4
push ecx
call fcn.0049cf8e
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
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x24]
push edx
mov dword [ebx + 0x10e4], 0x3ea
mov dword [ebx + 0x10e8], edi
mov dword [ebx + 0x10ec], edi
call fcn.0049cf8e
mov eax, dword [ebp - 0x2c]
add esp, 4
push eax
call fcn.0049cf8e
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8