Function at 0x10002fe0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100088f6
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [section..data]
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 0x10009464
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
call fcn.10002c40
mov byte [ebp - 4], 2
mov ecx, ebx
push 0
push 0x10009464
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
call fcn.10002c40
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.10001f20
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 0x100031ad
xor ebx, ebx
nop dword [eax]
lea edx, [ebx + esi]
push 0x10009368
lea ecx, [ebp - 0x270]
call fcn.10001980
add esp, 4
push eax
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 4
call fcn.10007140
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x25c]
cmp ecx, 0x10
jb 0x10003174
mov edx, dword [ebp - 0x270]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000316a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034e2
push ecx
push edx
call fcn.100078b8
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 0x10003110
cmp dword [edi - 4], 0x10
lea eax, [edi - 0x18]
jb 0x100031b8
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 0x1000353c
mov byte [ebp - 4], 5
lea edx, [ebp - 0x258]
mov edi, dword [ebp + ebx*4 - 0x2a8]
lea ecx, [ebp - 0x270]
push edi
call fcn.10001980
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 0x10003253
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.10002c40
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 0x100032a3
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 0x100032c4
push 1
push 0x10009368
mov byte [ebp - 0x284], 0
lea ecx, [ebp - 0x234]
push dword [ebp - 0x284]
push 1
call fcn.10001d50
test ebx, ebx
jne 0x1000335e
mov edx, dword [ebp - 0x220]
mov eax, edx
mov ecx, dword [ebp - 0x224]
sub eax, ecx
push 0xe
push 0x10009514
cmp eax, 0xe
jb 0x10003311
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 0x1000332b
mov byte [ebp - 0x288], 0
lea ecx, [ebp - 0x234]
push dword [ebp - 0x288]
push 0xe
call fcn.10001d50
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x234]
cmp ecx, eax
je 0x1000342b
cmp dword [ebp - 0x220], 0x10
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.10003e30
jmp 0x1000342b
cmp ebx, 5
jne 0x100033bd
mov edx, dword [ebp - 0x220]
mov eax, edx
mov ecx, dword [ebp - 0x224]
sub eax, ecx
push 0xb
push 0x10009524
cmp eax, 0xb
jb 0x100033ac
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 0x1000342b
mov byte [ebp - 0x28c], 0
push dword [ebp - 0x28c]
push 0xb
jmp 0x10003420
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100033c2
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 0x10003411
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 0x1000342b
push edi
mov byte [ebp - 0x27c], 0
push dword [ebp - 0x27c]
push esi
lea ecx, [ebp - 0x234]
call fcn.10001d50
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 0x10003497
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000348d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100034e2
push ecx
push edx
call fcn.100078b8
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 0x100034f2
mov edx, dword [ebp - 0x270]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100034e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100034e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100078b8
add esp, 8
mov dword [ebp - 4], 3
inc ebx
mov edi, dword [ebp - 0x23c]
mov esi, dword [ebp - 0x240]
jmp 0x100031f2
test esi, esi
je 0x100035b8
push ecx
mov edx, edi
mov ecx, esi
call fcn.10002590
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 0x10003590
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000362f
push ecx
push esi
call fcn.100078b8
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 0x100035ee
mov edx, dword [ebp - 0x258]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100035e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000362f
push ecx
push edx
call fcn.100078b8
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 0x1000363f
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003635
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10003635
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100078b8
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.100078aa
mov esp, ebp
pop ebp
ret