Function at 0x10003cb0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100099d6
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x1000f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x280], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x258]
push 0
push 0x1000a6a8
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
call fcn.10003910
mov byte [ebp - 4], 2
mov ecx, ebx
push 0
push 0x1000a6a8
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
call fcn.10003910
push 0x104
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x280], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
mov dword [ebp - 0x238], 0
push ecx
lea edx, [ebp - 0x21c]
movq qword [ebp - 0x240], xmm0
lea ecx, [ebp - 0x240]
call fcn.10002a00
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x23c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x240]
mov dword [ebp - 0x274], ecx
mov ecx, edi
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, 0xffffffff
je 0x10003e7d
xor ebx, ebx
nop dword [eax]
lea edx, [ebx + esi]
push 0x1000a558
lea ecx, [ebp - 0x270]
call fcn.10002360
add esp, 4
push eax
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 4
call fcn.10007e10
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x25c]
cmp ecx, 0x10
jb 0x10003e44
mov edx, dword [ebp - 0x270]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003e3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100041b2
push ecx
push edx
call fcn.10008a0a
add esp, 8
mov edi, dword [ebp - 0x23c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x240]
mov ecx, edi
inc dword [ebp - 0x274]
sub ecx, esi
imul ecx
mov ecx, dword [ebp - 0x274]
add ebx, 0x18
sar edx, 2
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp ecx, eax
jb 0x10003de0
cmp dword [edi - 4], 0x10
lea eax, [edi - 0x18]
jb 0x10003e88
mov eax, dword [eax]
mov dword [ebp - 0x2a8], eax
xor ebx, ebx
mov dword [ebp - 0x2a4], str.UpdateRingSettings.dll
mov dword [ebp - 0x2a0], str.vcruntime140.dll
mov dword [ebp - 0x29c], str.msvcp140.dll
mov dword [ebp - 0x298], str.LoggingPlatform.dll
mov dword [ebp - 0x294], str.CoreUIComponent.dll
mov dword [ebp - 0x274], ebx
cmp ebx, 6
jae 0x1000420c
mov byte [ebp - 4], 5
lea edx, [ebp - 0x258]
mov edi, dword [ebp + ebx*4 - 0x2a8]
lea ecx, [ebp - 0x270]
push edi
call fcn.10002360
add esp, 4
mov byte [ebp - 4], 6
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x234], 0
cmovae edx, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003f23
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.10003910
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x220]
mov eax, edx
mov ecx, dword [ebp - 0x224]
sub eax, ecx
cmp eax, 1
jb 0x10003f73
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
mov word [eax + ecx], 0x5c
jmp 0x10003f94
push 1
push 0x1000a558
mov byte [ebp - 0x284], 0
lea ecx, [ebp - 0x234]
push dword [ebp - 0x284]
push 1
call fcn.100025d0
test ebx, ebx
jne 0x1000402e
mov edx, dword [ebp - 0x220]
mov eax, edx
mov ecx, dword [ebp - 0x224]
sub eax, ecx
push 0xe
push 0x1000a758
cmp eax, 0xe
jb 0x10003fe1
cmp edx, 0x10
lea esi, [ebp - 0x234]
lea eax, [ecx + 0xe]
cmovae esi, dword [ebp - 0x234]
add esi, ecx
mov dword [ebp - 0x224], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xe], bl
jmp 0x10003ffb
mov byte [ebp - 0x288], 0
lea ecx, [ebp - 0x234]
push dword [ebp - 0x288]
push 0xe
call fcn.100025d0
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x234]
cmp ecx, eax
je 0x100040fb
cmp dword [ebp - 0x220], 0x10
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.10004b00
jmp 0x100040fb
cmp ebx, 5
jne 0x1000408d
mov edx, dword [ebp - 0x220]
mov eax, edx
mov ecx, dword [ebp - 0x224]
sub eax, ecx
push 0xb
push 0x1000a768
cmp eax, 0xb
jb 0x1000407c
cmp edx, 0x10
lea esi, [ebp - 0x234]
lea eax, [ecx + 0xb]
cmovae esi, dword [ebp - 0x234]
add esi, ecx
mov dword [ebp - 0x224], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0xb], 0
jmp 0x100040fb
mov byte [ebp - 0x28c], 0
push dword [ebp - 0x28c]
push 0xb
jmp 0x100040f0
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10004092
mov edx, dword [ebp - 0x220]
sub esi, ecx
mov ecx, dword [ebp - 0x224]
mov eax, edx
sub eax, ecx
push esi
cmp esi, eax
ja 0x100040e1
push dword [ebp + ebx*4 - 0x2a8]
cmp edx, 0x10
lea edi, [ebp - 0x234]
lea eax, [esi + ecx]
cmovae edi, dword [ebp - 0x234]
add edi, ecx
mov dword [ebp - 0x224], eax
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x100040fb
push edi
mov byte [ebp - 0x27c], 0
push dword [ebp - 0x27c]
push esi
lea ecx, [ebp - 0x234]
call fcn.100025d0
cmp dword [ebp - 0x220], 0x10
lea ecx, [ebp - 0x234]
push 0
cmovae ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x270]
cmp dword [ebp - 0x25c], 0x10
push ecx
cmovae eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x220]
cmp ecx, 0x10
jb 0x10004167
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000415d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100041b2
push ecx
push edx
call fcn.10008a0a
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x25c]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
cmp ecx, 0x10
jb 0x100041c2
mov edx, dword [ebp - 0x270]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100041b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100041b8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10008a0a
add esp, 8
mov dword [ebp - 4], 3
inc ebx
mov edi, dword [ebp - 0x23c]
mov esi, dword [ebp - 0x240]
jmp 0x10003ec2
test esi, esi
je 0x10004288
push ecx
mov edx, edi
mov ecx, esi
call fcn.10003360
mov ecx, dword [ebp - 0x238]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x240]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x10004260
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100042ff
push ecx
push esi
call fcn.10008a0a
add esp, 8
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov ecx, dword [ebp - 0x244]
cmp ecx, 0x10
jb 0x100042be
mov edx, dword [ebp - 0x258]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100042b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100042ff
push ecx
push edx
call fcn.10008a0a
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0xf
mov byte [ebp - 0x258], 0
cmp ecx, 0x10
jb 0x1000430f
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004305
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10004305
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10008a0a
add esp, 8
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100086bf
mov esp, ebp
pop ebp
ret