Function at 0x5164b0
Capabilities:
Copy file
Enumerate files on windows
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5753b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2e8], ecx
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x516500
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x288], esi
mov dword [ebp - 4], 0
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x516531
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2e0], 0
mov dword [ebp - 0x2dc], 0
mov dword [ebp - 0x2d8], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 0
lea eax, [ebp - 0x2bc]
mov byte [ebp - 4], 4
push eax
call fcn.00507740
add esp, 4
test eax, eax
jne 0x516636
mov eax, dword [ebp - 0x2bc]
test eax, eax
je 0x5165f4
push dword [ebp - 0x2b8]
push eax
call fcn.0045a910
push dword [ebp - 0x2bc]
call fcn.0052616f
add esp, 0xc
add edi, 0xfffffff0
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov eax, ebx
lea ecx, [edi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x516614
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x5175ab
mov ecx, dword [esi]
push esi
jmp 0x5175a6
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.00514a80
add esp, 8
test al, al
jne 0x5166c2
mov eax, dword [ebp - 0x2bc]
test eax, eax
je 0x516674
push dword [ebp - 0x2b8]
push eax
call fcn.0045a910
push dword [ebp - 0x2bc]
call fcn.0052616f
add esp, 0xc
mov edx, dword [ebp - 0x28c]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x51669a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x288]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x5175ab
mov ecx, dword [edx]
push edx
jmp 0x5175a6
mov ebx, dword [ebp - 0x288]
xor esi, esi
mov edi, dword [ebp - 0x28c]
mov dword [ebp - 0x27c], esi
cmp dword [ebp - 0x2b8], esi
jbe 0x516932
push ecx
mov dword [ebp - 0x268], esp
mov dword [ebp - 0x274], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x270], esp
push str.config.xml
call fcn.0045a3a0
mov byte [ebp - 4], 5
cmp esi, dword [ebp - 0x2b8]
jae 0x516a20
mov eax, dword [ebp - 0x2bc]
lea ecx, [esi*4]
push ecx
mov esi, esp
mov dword [ebp - 0x280], ecx
mov eax, dword [eax + ecx]
sub eax, 0x10
push eax
call fcn.0045a950
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x268]
call fcn.00516220
add esp, 8
mov byte [ebp - 4], 6
lea eax, [ebx - 0x10]
mov esi, esp
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 4
push eax
call fcn.00516220
add esp, 0xc
mov ecx, dword [ebp - 0x2dc]
mov esi, ecx
mov eax, dword [eax]
mov byte [ebp - 4], 7
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x274], esi
cmp ecx, dword [ebp - 0x2d8]
jb 0x5167b7
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.004a4370
test al, al
je 0x516a16
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x2e0]
lea ecx, [ecx + esi*4]
mov dword [ebp - 0x270], ecx
mov byte [ebp - 4], 8
test ecx, ecx
je 0x5167d4
push eax
call fcn.0045a3a0
mov edx, dword [ebp - 0x264]
or ecx, 0xffffffff
inc dword [ebp - 0x2dc]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5167fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov dword [ebp - 0x268], esp
mov dword [ebp - 0x274], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x270], esp
push str.UpdaterConfig
call fcn.0045a3a0
mov eax, dword [ebp - 0x27c]
mov byte [ebp - 4], 9
cmp eax, dword [ebp - 0x2b8]
jae 0x516a20
mov eax, dword [ebp - 0x2bc]
push ecx
mov ecx, dword [ebp - 0x280]
mov esi, esp
mov eax, dword [eax + ecx]
sub eax, 0x10
push eax
call fcn.0045a950
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x268]
call fcn.00516220
add esp, 8
mov byte [ebp - 4], 0xa
lea eax, [edi - 0x10]
mov esi, esp
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 4
push eax
call fcn.00516220
add esp, 0xc
mov ecx, dword [ebp - 0x2c8]
mov esi, ecx
mov eax, dword [eax]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x274], esi
cmp ecx, dword [ebp - 0x2c4]
jb 0x5168d2
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.004a4370
test al, al
je 0x516a16
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x2cc]
lea ecx, [ecx + esi*4]
mov dword [ebp - 0x270], ecx
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x5168ef
push eax
call fcn.0045a3a0
mov edx, dword [ebp - 0x294]
or ecx, 0xffffffff
inc dword [ebp - 0x2c8]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x516919
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x27c]
inc esi
mov dword [ebp - 0x27c], esi
cmp esi, dword [ebp - 0x2b8]
jb 0x5166e2
mov ecx, dword [ebp - 0x2e8]
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x29c]
push eax
call fcn.00514590
mov eax, dword [ebp - 0x29c]
mov byte [ebp - 4], 0xd
cmp dword [eax - 0xc], 0
jne 0x516d5d
xor esi, esi
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], esi
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x2a0], esi
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x26c], esi
cmp dword [ebp - 0x2c8], esi
jbe 0x516c30
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x27c], eax
nop
push ecx
mov ecx, esp
mov dword [ebp - 0x274], esp
push str..xml
call fcn.0045a3a0
mov eax, dword [ebp - 0x26c]
mov byte [ebp - 4], 0xf
cmp eax, dword [ebp - 0x2c8]
jae 0x516a20
mov eax, dword [ebp - 0x27c]
push ecx
mov dword [ebp - 0x264], esp
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp - 0x284], eax
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x284]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x268], eax
jl 0x516a2a
cmp edx, dword [ecx]
jne 0x516a2a
mov dword [ebp - 0x278], ecx
mov eax, 1
mov ecx, dword [ebp - 0x268]
lock xadd dword [ecx], eax
jmp 0x516a78
push 0x8007000e
call fcn.0045a8f0
push 0x80070057
call fcn.0045a8f0
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0x278], eax
test eax, eax
je 0x516ccf
mov edx, dword [ebp - 0x284]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [ebp - 0x278]
add eax, 0x10
push eax
call fcn.0052628b
add esp, 0x10
mov ecx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x278]
add eax, 0x10
mov dword [ecx], eax
lea eax, [ebp - 0x294]
push eax
mov byte [ebp - 4], 0xe
call fcn.00516220
add esp, 0xc
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 0x10
push eax
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x278], eax
cmp eax, 0xffffffff
je 0x516bec
jmp 0x516ad0
test dword [ebp - 0x260], 0x10
jne 0x516bc9
push 0x57e140
push dword [ebp - 0x27c]
lea eax, [ebp - 0x298]
push eax
call fcn.00480bb0
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x11
push ecx
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.00480bb0
add esp, 0x18
mov edx, dword [eax]
mov eax, esi
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x268], eax
cmp esi, dword [ebp - 0x2a4]
jb 0x516b57
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.004a4370
test al, al
je 0x516a16
mov esi, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x268]
mov edx, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x2ac]
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x274], ecx
mov byte [ebp - 4], 0x13
test ecx, ecx
je 0x516b74
push edx
call fcn.0045a3a0
mov edx, dword [ebp - 0x280]
inc esi
add edx, 0xfffffff0
mov dword [ebp - 0x2a8], esi
mov byte [ebp - 4], 0x11
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x516b9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x298]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x516bc3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [ebp - 0x278]
jne 0x516ad0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x294]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x516c10
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x26c]
add dword [ebp - 0x27c], 4
inc eax
mov dword [ebp - 0x26c], eax
cmp eax, dword [ebp - 0x2c8]
jb 0x5169a0
mov ecx, dword [ebp - 0x2e8]
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.00514590
mov edx, dword [eax]
mov ecx, dword [ebp - 0x29c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x264], ecx
lea eax, [edx - 0x10]
mov dword [ebp - 0x298], eax
lea eax, [edx - 0x10]
cmp eax, ecx
je 0x516ce3
cmp dword [ecx + 0xc], 0
lea ebx, [ecx + 0xc]
mov dword [ebp - 0x268], ebx
mov ebx, dword [ebp - 0x288]
jl 0x516cd4
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x516cd4
mov eax, dword [ebp - 0x298]
push eax
call fcn.0045a950
mov dword [ebp - 0x298], eax
add esp, 4
mov eax, dword [ebp - 0x268]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x516cbe
mov eax, dword [ebp - 0x264]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x298]
add eax, 0x10
mov dword [ebp - 0x29c], eax
jmp 0x516ce3
call fcn.00494170
push dword [edx - 0xc]
lea ecx, [ebp - 0x29c]
push edx
call fcn.0045b6e0
mov edx, dword [ebp - 0x280]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x516d07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2ac]
mov byte [ebp - 4], 0xd
test eax, eax
je 0x516d5d
test esi, esi
je 0x516d54
xor ebx, ebx
mov edi, eax
lea ecx, [ecx]
mov edx, dword [edi + ebx*4]
or ecx, 0xffffffff
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x516d3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
cmp ebx, esi
jb 0x516d20
mov edi, dword [ebp - 0x28c]
mov ebx, dword [ebp - 0x288]
mov eax, dword [ebp - 0x2ac]
push eax
call fcn.0052616f
add esp, 4
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x516d79
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x2d0]
mov byte [ebp - 4], 0x15
push eax
call fcn.0050c070
add esp, 4
test eax, eax
je 0x516db2
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.0045fed0
xor esi, esi
mov dword [ebp - 0x27c], esi
cmp dword [ebp - 0x2c8], esi
jbe 0x517346
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x2e0]
sub eax, ecx
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x298], eax
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x5164f6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x294], eax
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x2ec], 0
push eax
cmp esi, dword [ebp - 0x2dc]
jae 0x516a20
mov eax, dword [ebp - 0x298]
mov esi, dword [ebp - 0x278]
push ecx
mov dword [ebp - 0x280], esp
mov esi, dword [eax + esi]
sub esi, 0x10
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x516e5f
cmp ecx, dword [esi]
jne 0x516e5f
mov eax, 1
lock xadd dword [edx], eax
jmp 0x516ea7
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x264], edx
test edx, edx
je 0x516ccf
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.0052628b
mov esi, dword [ebp - 0x264]
add esp, 0x10
mov ecx, dword [ebp - 0x280]
lea eax, [esi + 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x2e8]
call fcn.00514d30
mov esi, dword [ebp - 0x294]
test al, al
je 0x516ee2
push 0xa
lea eax, [ebp - 0x2ec]
push eax
push esi
call fcn.00527f3c
add esp, 0xc
cmp eax, 1
je 0x517308
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0
mov ecx, dword [ebp - 0x27c]
mov byte [ebp - 4], 0x17
push 0x2001f
cmp ecx, dword [ebp - 0x2b8]
jae 0x516a20
mov eax, dword [ebp - 0x2bc]
push ecx
mov dword [ebp - 0x274], esp
mov dword [ebp - 0x280], esp
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax - 0x10]
sub eax, 0x10
mov dword [ebp - 0x284], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x284]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x264], eax
jl 0x516f74
cmp edx, dword [ecx]
jne 0x516f74
mov dword [ebp - 0x26c], ecx
mov eax, 1
mov ecx, dword [ebp - 0x264]
lock xadd dword [ecx], eax
jmp 0x516fc2
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x516ccf
mov edx, dword [ebp - 0x284]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [ebp - 0x26c]
add eax, 0x10
push eax
call fcn.0052628b
add esp, 0x10
mov ecx, dword [ebp - 0x280]
mov eax, dword [ebp - 0x26c]
add eax, 0x10
mov dword [ecx], eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 0x18
push str.SoftwareAskPartnerNetworkToolbarUpdater
call fcn.0045a3a0
lea eax, [ebp - 0x2fc]
mov byte [ebp - 4], 0x17
push eax
call fcn.00516220
add esp, 0xc
lea ecx, [ebp - 0x2a8]
push dword [eax]
push reloc.WS2_32.dll_accept
call fcn.0045b220
mov edx, dword [ebp - 0x2fc]
test eax, eax
sete byte [ebp - 0x28d]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517032
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x28d], 0
mov eax, dword [ebp - 0x2a8]
je 0x5172e9
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], 4
push ecx
lea ecx, [ebp - 0x2f0]
push ecx
lea ecx, [ebp - 0x2f8]
push ecx
push 0
push str.schemaIndex
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x51708c
cmp dword [ebp - 0x2f8], 4
jne 0x51708c
cmp dword [ebp - 0x2f0], 1
jae 0x5172e3
push 4
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e4], 1
push eax
push 4
push 0
push str.schemaIndex
push dword [ebp - 0x2a8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call fcn.0045adc0
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x5164f6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x280], eax
push dword [ebp - 0x2d0]
lea eax, [ebp - 0x280]
mov byte [ebp - 4], 0x19
push 1
push str.ConfigV_d._s_0.xml
push eax
call fcn.0045acb0
mov eax, dword [ebp - 0x280]
add esp, 0xc
add eax, 0xfffffff0
mov dword [ebp - 0x2f4], esp
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x270], esp
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x284]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x264], eax
jl 0x51714c
cmp edx, dword [ecx]
jne 0x51714c
mov dword [ebp - 0x26c], ecx
mov eax, 1
mov ecx, dword [ebp - 0x264]
lock xadd dword [ecx], eax
jmp 0x51719a
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x516ccf
mov edx, dword [ebp - 0x284]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [ebp - 0x26c]
add eax, 0x10
push eax
call fcn.0052628b
add esp, 0x10
mov ecx, dword [ebp - 0x270]
mov eax, dword [ebp - 0x26c]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c8]
mov byte [ebp - 4], 0x1a
cmp dword [ebp - 0x27c], eax
jae 0x516a20
mov eax, dword [ebp - 0x278]
push ecx
mov dword [ebp - 0x274], esp
mov eax, dword [eax]
sub eax, 0x10
mov dword [ebp - 0x264], eax
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x264]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x270], eax
jl 0x517212
cmp edx, dword [ecx]
jne 0x517212
mov dword [ebp - 0x26c], ecx
mov eax, 1
mov ecx, dword [ebp - 0x270]
lock xadd dword [ecx], eax
jmp 0x517260
mov eax, dword [edx]
push 2
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov dword [ebp - 0x26c], eax
test eax, eax
je 0x516ccf
mov edx, dword [ebp - 0x264]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [ebp - 0x26c]
add eax, 0x10
push eax
call fcn.0052628b
add esp, 0x10
mov ecx, dword [ebp - 0x274]
mov eax, dword [ebp - 0x26c]
add eax, 0x10
mov dword [ecx], eax
lea eax, [ebp - 0x268]
push eax
mov byte [ebp - 4], 0x19
call fcn.00516220
add esp, 0xc
push 1
push dword [ebp - 0x268]
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x5172a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x268]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5172c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x284]
or ecx, 0xffffffff
mov byte [ebp - 4], 0x17
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5172e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2a8]
test eax, eax
je 0x5172fe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 0x2a4], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 0x15
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517326
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x27c]
add dword [ebp - 0x278], 4
inc esi
mov dword [ebp - 0x27c], esi
cmp esi, dword [ebp - 0x2c8]
jb 0x516de0
mov eax, dword [ebp - 0x2b8]
xor ecx, ecx
mov dword [ebp - 0x264], ecx
test eax, eax
je 0x51740f
cmp ecx, eax
jae 0x516a20
mov eax, dword [ebp - 0x2bc]
push ecx
mov dword [ebp - 0x270], esp
mov esi, dword [eax + ecx*4]
mov ecx, dword [esi - 0x10]
sub esi, 0x10
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
mov ecx, eax
jl 0x517399
cmp ecx, dword [esi]
jne 0x517399
mov eax, 1
lock xadd dword [edx], eax
jmp 0x5173e1
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x274], edx
test edx, edx
je 0x516ccf
mov ecx, dword [esi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.0052628b
mov esi, dword [ebp - 0x274]
add esp, 0x10
mov ecx, dword [ebp - 0x270]
lea eax, [esi + 0x10]
mov dword [ecx], eax
call fcn.0050a960
mov ecx, dword [ebp - 0x264]
add esp, 4
mov eax, dword [ebp - 0x2b8]
inc ecx
mov dword [ebp - 0x264], ecx
cmp ecx, eax
jb 0x517364
mov edx, dword [ebp - 0x2d0]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0xd
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517435
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x29c]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517458
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2cc]
mov byte [ebp - 4], 3
test eax, eax
je 0x5174b3
cmp dword [ebp - 0x2c8], 0
jbe 0x5174aa
mov ebx, dword [ebp - 0x2c8]
xor edi, edi
mov edx, dword [eax + edi*4]
mov ecx, esi
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x517493
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2cc]
inc edi
cmp edi, ebx
jb 0x517477
mov edi, dword [ebp - 0x28c]
mov ebx, dword [ebp - 0x288]
push eax
call fcn.0052616f
add esp, 4
mov eax, dword [ebp - 0x2e0]
mov byte [ebp - 4], 2
test eax, eax
je 0x51750e
cmp dword [ebp - 0x2dc], 0
jbe 0x517505
mov edi, dword [ebp - 0x2dc]
xor ebx, ebx
mov edx, dword [eax + ebx*4]
mov ecx, esi
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5174ee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2e0]
inc ebx
cmp ebx, edi
jb 0x5174d2
mov edi, dword [ebp - 0x28c]
mov ebx, dword [ebp - 0x288]
push eax
call fcn.0052616f
add esp, 4
mov eax, dword [ebp - 0x2bc]
mov byte [ebp - 4], 1
test eax, eax
je 0x517570
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x270], ecx
test ecx, ecx
je 0x517567
xor edi, edi
mov ebx, eax
mov edx, dword [ebx + edi*4]
mov ecx, esi
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51754c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc edi
cmp edi, dword [ebp - 0x270]
jb 0x517530
mov eax, dword [ebp - 0x2bc]
mov edi, dword [ebp - 0x28c]
mov ebx, dword [ebp - 0x288]
push eax
call fcn.0052616f
add esp, 4
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, esi
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51758d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x5175ab
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret