Function at 0x402de0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x51fe10
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c5c30]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebx, ebx
cmp dword [ebp + 0x1108], eax
je 0x402e36
mov dword [ebp + 0x10e4], 0x3f3
mov dword [ebp + 0x10e8], ebx
mov dword [ebp + 0x10ec], ebx
jmp 0x4031d8
cmp dword [ebp + 0x10f0], ebx
je 0x4031d8
mov eax, dword [esp + 0x54]
mov dword [ebp + 0x1104], eax
mov dword [ebp + 0x10f4], ebx
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 8], ebx
mov word [ecx], bx
mov edx, dword [ebp + 0x14]
mov word [edx], bx
mov edx, dword [esp + 0x50]
lea eax, [ebp + 0x10cc]
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [esp + 0x48], eax
lea esi, [ebp + 0x58]
mov eax, esi
mov dword [ebp + 0x4c], ebx
call fcn.004018e0
mov eax, esi
call fcn.00401db0
mov eax, dword [esi]
push str.MEMORY_
push eax
call fcn.004d8bf0
add esp, 8
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp + 0x10f8], eax
mov eax, 0x12c
lea edi, [esp + 0x30]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.004017f0
mov ecx, dword [esp + 0x30]
mov word [ecx], bx
mov dword [esp + 0x40], ebx
mov eax, 0x12c
lea edi, [esp + 0x28]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004017f0
mov edx, dword [esp + 0x28]
mov word [edx], bx
mov ecx, dword [esp + 0x4c]
mov eax, edi
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0x44], 1
call fcn.00401e10
mov eax, dword [esi]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402f15
sub eax, edx
sar eax, 1
cmp eax, dword [esi + 4]
jb 0x402f40
push 0x5bc070
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], str.The_string_has_no_terminating_null_character_
call fcn.004ddec0
cmp eax, 3
mov edi, dword [esp + 0x30]
jb 0x4031b1
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402f52
sub eax, edx
sar eax, 1
cmp eax, dword [esp + 0x34]
jb 0x402f7e
push 0x5bc070
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], str.The_string_has_no_terminating_null_character_
call fcn.004ddec0
cmp eax, 2
jb 0x4031b1
mov eax, dword [esp + 0x28]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402f90
sub eax, edx
sar eax, 1
cmp eax, dword [esp + 0x2c]
jb 0x402fbc
push 0x5bc070
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x5c], str.The_string_has_no_terminating_null_character_
call fcn.004ddec0
cmp eax, 2
jb 0x4031b1
mov ecx, dword [ebp + 0x60]
mov eax, 0x12c
lea esi, [esp + 0x20]
mov word [ecx], bx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00401640
mov edx, dword [esp + 0x20]
mov byte [edx], bl
mov byte [esp + 0x40], 2
mov eax, 0x12c
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00401640
mov eax, dword [esp + 0x18]
mov byte [eax], bl
mov byte [esp + 0x40], 3
mov ecx, dword [esp + 0x54]
push ecx
push ebx
push 0x403460
push ebx
mov eax, esi
call fcn.004016e0
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x34]
call fcn.004016e0
mov edx, dword [ebp + 0x10f0]
push eax
mov eax, dword [ebp + 0x1114]
push edx
call eax
add esp, 0x1c
test eax, eax
je 0x40312a
lea esp, [esp]
mov eax, dword [ebp + 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403056
sub eax, edx
sar eax, 1
cmp eax, dword [ebp + 0x64]
lea esi, [ebp + 0x60]
jae 0x40319a
cmp eax, ebx
je 0x40312a
mov edx, esi
lea eax, [esp + 0x28]
call fcn.004018e0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004263d0
mov byte [esp + 0x44], 1
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.004263d0
mov eax, dword [esi]
mov word [eax], bx
add esp, 4
mov eax, 0x12c
lea esi, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00401640
mov ecx, dword [esp + 0x20]
mov byte [ecx], bl
mov byte [esp + 0x40], 2
mov eax, 0x12c
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00401640
mov edx, dword [esp + 0x18]
mov byte [edx], bl
mov byte [esp + 0x40], 3
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x30]
push eax
push ebx
push 0x403460
push ebx
mov eax, esi
call fcn.004016e0
mov edi, dword [esp + 0x38]
push eax
lea eax, [esp + 0x34]
call fcn.004016e0
mov ecx, dword [ebp + 0x10f0]
mov edx, dword [ebp + 0x1114]
push eax
push ecx
call edx
add esp, 0x1c
test eax, eax
jne 0x403050
mov eax, dword [esp + 0x18]
push eax
call fcn.004263d0
mov byte [esp + 0x44], 1
mov ecx, dword [esp + 0x24]
add esp, 4
push ecx
call fcn.004263d0
mov eax, dword [ebp + 8]
add esp, 4
mov esi, ebp
call fcn.004038e0
cmp dword [ebp + 0x10f4], ebx
je 0x40316a
cmp dword [ebp + 8], ebx
je 0x40316a
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x48]
call fcn.004022e0
mov esi, eax
mov eax, dword [esp + 0x28]
neg esi
sbb esi, esi
push eax
add esi, 1
call fcn.004263d0
mov ecx, dword [esp + 0x34]
add esp, 4
push ecx
call fcn.004263d0
add esp, 4
mov eax, esi
jmp 0x4031da
push 0x5bc070
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x5c], str.The_string_has_no_terminating_null_character_
call fcn.004ddec0
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
push edx
mov dword [eax + 0x18], 0x3ea
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], ebx
call fcn.004263d0
add esp, 4
push edi
call fcn.004263d0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x10