Function at 0x402340
Capabilities:
Move 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 0x404c06
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x160
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
mov dword [ebp - 0x140], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x13c], 0
movups xmmword [ebp - 0x150], xmm0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4023c0
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x150]
call fcn.00403340
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x150]
call fcn.00402d20
xorps xmm0, xmm0
mov dword [ebp - 0x128], 0
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x124], 0
lea edx, [eax + 1]
mov eax, dword [ebp - 0x140]
cmp eax, edx
jb 0x40261a
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x13c], 0xf
lea eax, [ebp - 0x150]
cmova eax, dword [ebp - 0x150]
push ecx
add eax, edx
lea ecx, [ebp - 0x138]
push eax
call fcn.00403340
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x16c]
push 0x32
xorps xmm0, xmm0
mov dword [ebp - 0x15c], 0
push str.C:Program_Files__x86_MicrosoftEdgeApplication_
movups xmmword [ebp - 0x16c], xmm0
mov dword [ebp - 0x158], 0
call fcn.00403340
mov byte [ebp - 4], 2
lea edx, [ebp - 0x138]
cmp dword [ebp - 0x124], 0xf
mov ecx, dword [ebp - 0x15c]
cmova edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x158]
mov edi, dword [ebp - 0x128]
sub eax, ecx
mov dword [ebp - 0x154], ecx
push edi
push edx
cmp edi, eax
ja 0x4024f8
cmp dword [ebp - 0x158], 0xf
lea esi, [ebp - 0x16c]
lea eax, [ecx + edi]
cmova esi, dword [ebp - 0x16c]
mov dword [ebp - 0x15c], eax
lea eax, [esi + ecx]
push eax
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x154]
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ecx], 0
lea ecx, [ebp - 0x16c]
jmp 0x40250c
push dword [ebp - 0x154]
lea ecx, [ebp - 0x16c]
push edi
call fcn.00403730
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x402514
mov ecx, dword [ecx]
cmp dword [ebp - 0x124], 0xf
lea eax, [ebp - 0x138]
push ecx
cmova eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov ecx, dword [ebp - 0x158]
add esp, 8
cmp ecx, 0xf
jbe 0x40256f
mov edx, dword [ebp - 0x16c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402565
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402565
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00403cc8
add esp, 8
mov ecx, dword [ebp - 0x124]
cmp ecx, 0xf
jbe 0x4025a5
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40259b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025ec
push ecx
push edx
call fcn.00403cc8
add esp, 8
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
cmp ecx, 0xf
jbe 0x4025fc
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4025f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4025f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00403cc8
add esp, 8
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.00403c85
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00402f60
int3