Function at 0x401780
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a62b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x498
mov eax, dword [0x554efc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x450]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfindfirst64i32]
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x45c], eax
add esp, 8
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x460], 0
sub ecx, esi
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x401810
lea eax, [ebp - 0x220]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x40183d
xor ecx, ecx
mov word [eax], cx
jmp 0x401846
xor eax, eax
mov word [ebp - 0x220], ax
lea edi, [ebp - 0x220]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x401850
cmp dword [ebp - 0x45c], 0xffffffff
mov eax, dword [0x550c74]
mov dword [edi], eax
je 0x401abb
xor esi, esi
mov eax, 0x104
xor edi, edi
mov dword [ebp - 0x474], esi
mov dword [ebp - 0x454], edi
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x470], eax
lea edx, [esi + 2]
nop dword [eax]
nop dword [eax + eax]
test byte [ebp - 0x450], 0x10
je 0x4019d7
mov ecx, 0x550c70
lea eax, [ebp - 0x42c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4018de
test dx, dx
je 0x4018da
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4018de
add eax, 4
add ecx, 4
test dx, dx
jne 0x4018b8
xor eax, eax
jmp 0x4018e3
sbb eax, eax
or eax, 1
test eax, eax
je 0x401a82
mov ecx, 0x550c68
lea eax, [ebp - 0x42c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40191c
test dx, dx
je 0x401918
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40191c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4018f6
xor eax, eax
jmp 0x401921
sbb eax, eax
or eax, 1
test eax, eax
je 0x401a82
mov eax, dword [ebp - 0x470]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [ebp - 0x46c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add edi, eax
mov dword [ebp - 0x46c], eax
lea edx, [ebp - 0x220]
mov esi, edi
mov eax, edx
add esp, 8
sub esi, eax
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [edx + esi - 2], cx
test cx, cx
jne 0x401963
lea edx, [ebp - 0x42c]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401980
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401990
mov ecx, edx
inc dword [ebp - 0x468]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add dword [ebp - 0x470], 0x104
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x454]
mov esi, dword [ebp - 0x474]
add edi, 0x208
mov dword [ebp - 0x454], edi
jmp 0x401a82
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [ebp - 0x464]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
lea edx, [ebp - 0x220]
mov dword [ebp - 0x464], eax
add esp, 8
lea edi, [esi + eax]
mov eax, edx
mov esi, edi
sub esi, eax
nop word [eax + eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [edx + esi - 2], cx
test cx, cx
jne 0x401a10
lea edx, [ebp - 0x42c]
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401a30
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401a40
mov ecx, edx
inc dword [ebp - 0x460]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add dword [ebp - 0x458], 0x104
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x474]
mov edi, dword [ebp - 0x454]
add esi, 0x208
mov dword [ebp - 0x474], esi
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x45c]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfindnext64i32]
add esp, 8
mov edx, 2
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x458]
jne 0x4018a0
push dword [ebp - 0x45c]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__findclose]
add esp, 4
cmp dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
jle 0x401d07
mov esi, dword [ebp - 0x464]
mov dword [ebp - 0x458], esi
nop
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401ae5
sub ecx, edx
mov dword [ebp - 0x494], 0
sar ecx, 1
xor eax, eax
push ecx
push esi
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x490], 7
mov word [ebp - 0x4a4], ax
call fcn.00407e50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4a4]
mov esi, dword [ebp - 0x490]
cmp esi, 8
mov edi, dword [ebp - 0x4a4]
mov eax, dword [ebp - 0x494]
cmovae ecx, edi
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x454], ecx
cmp eax, 8
jae 0x401b87
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x478], 7
movups xmmword [ebp - 0x48c], xmm0
jmp 0x401c3d
mov esi, eax
mov eax, SysReAllocString
or esi, 7
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x401bac
or ecx, 0xffffffff
jmp 0x401bb4
cmp ecx, 0x1000
jb 0x401bde
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call dword [sym.imp.mfc140u.dll_operator]
add esp, 4
test eax, eax
je 0x401d7e
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x401bf2
test ecx, ecx
je 0x401bf0
push ecx
call dword [sym.imp.mfc140u.dll_operator]
add esp, 4
mov ecx, eax
jmp 0x401bf2
xor ecx, ecx
mov eax, dword [ebp - 0x494]
mov dword [ebp - 0x48c], ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x454]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x494]
add esp, 0xc
mov dword [ebp - 0x47c], eax
cmp esi, 8
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x478], esi
cmovae eax, dword [ebp - 0x48c]
mov esi, dword [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x478]
cmp edx, 8
jb 0x401c84
mov ecx, dword [ebp - 0x48c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401c7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d7e
push edx
push ecx
call fcn.00457dc9
add esp, 8
xor eax, eax
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x478], 7
mov word [ebp - 0x48c], ax
mov dword [ebp - 4], 0xffffffff
cmp esi, 8
jb 0x401cdc
lea ecx, [esi*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x401cd2
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401d7e
push ecx
push edi
call fcn.00457dc9
add esp, 8
mov eax, dword [ebp - 0x45c]
mov esi, dword [ebp - 0x458]
inc eax
add esi, 0x208
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], esi
cmp eax, dword [ebp - 0x460]
jl 0x401ae0
mov eax, dword [ebp - 0x464]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x401d1d
push eax
call edi
add esp, 4
cmp dword [ebp - 0x468], 0
jle 0x401d4a
mov esi, dword [ebp - 0x46c]
mov edi, dword [ebp - 0x468]
mov ecx, esi
call fcn.00401d90
add esi, 0x208
sub edi, 1
jne 0x401d32
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x46c]
test eax, eax
je 0x401d5a
push eax
call edi
add esp, 4
mov eax, dword [ebp - 0x460]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00457db8
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3