Function at 0x5b7470
Capabilities:
Check if file exists
Get file attributes
Get session user name
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x627728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xde4
push ebx
mov ebx, ecx
push esi
push edi
mov al, byte [ebx + 0x15e]
mov dword [ebp - 0x10], esp
test al, al
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0
jne 0x5b74fc
mov eax, dword [ebp + 8]
test eax, eax
je 0x5b74ce
push eax
call fcn.005bac30
test eax, eax
jne 0x5b74fc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x5b74fc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5b74fc
push eax
push ecx
mov ecx, ebx
call fcn.005bae70
test eax, eax
jne 0x5b74fc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebx + 0x15e], 0
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x6e066c]
mov eax, dword [0x6e0674]
mov edx, dword [0x6e0670]
mov dword [ebp - 0x54], ecx
mov ecx, dword [0x6e0678]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x50], edx
mov dx, word [0x6e067c]
lea ecx, [ebp - 0x360]
push eax
push ecx
mov word [ebp - 0x44], dx
mov edx, dword [0x6ec7a0]
push 0
push 0
push 0x6c1100
push edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], 0x80
mov dword [ebp - 0x3c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5b75ba
lea eax, [ebp - 0x360]
push eax
call fcn.005df804
add esp, 4
test eax, eax
jne 0x5b75ba
lea ecx, [ebp - 0x360]
push ecx
call fcn.005de123
add esp, 4
cmp word [ebp + eax*2 - 0x362], 0x5c
je 0x5b7648
lea edx, [ebp - 0x360]
push 0x6bc14c
push edx
call fcn.005de2bf
add esp, 8
jmp 0x5b7648
mov eax, dword [0x6ec760]
test eax, eax
jne 0x5b75c8
mov eax, 0x6ec764
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5b762d
mov eax, dword [0x6ec760]
test eax, eax
jne 0x5b75e2
mov eax, 0x6ec764
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.005de2e9
mov eax, dword [0x6ec760]
add esp, 8
test eax, eax
jne 0x5b7629
mov eax, 0x6ec764
mov esi, eax
push eax
call fcn.005de123
mov edx, dword [0x6ec7a0]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push 0x6c1100
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x5b7648
mov esi, eax
jmp 0x5b7602
lea eax, [ebp - 0x360]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0xbf0]
lea edx, [ebp - 0xdf0]
push ecx
lea eax, [ebp - 0x9f0]
push edx
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x360]
push ecx
push edx
call fcn.005deee8
add esp, 0x14
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x9f0]
lea edx, [ebp - 0x34]
push eax
push ecx
push edx
lea eax, [ebp - 0x360]
push 0x6c4f58
push eax
call fcn.005df06c
lea ecx, [ebp - 0x360]
push ecx
call fcn.005e016e
add esp, 0x18
test eax, eax
je 0x5b7706
call fcn.005e0d7f
cmp dword [eax], 0xd
je 0x5b7706
call fcn.005e0d7f
cmp dword [eax], 0x11
je 0x5b7706
mov esi, dword [0x6ed568]
call fcn.005e0d7f
mov edx, dword [eax]
lea eax, [ebp - 0x360]
push edx
push eax
lea ecx, [ebp - 0x14]
push esi
push ecx
call fcn.005f368b
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x414]
add esp, 0x10
push 1
push edx
call fcn.004ab540
mov eax, dword [0x6ed564]
mov ecx, dword [ebp - 0x14]
push 0x50030
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x5b7f0a
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x3e0]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x5b772f
lea ecx, [ebp - 0x3e0]
push 0x6c05c4
push ecx
call fcn.005df06c
add esp, 8
lea edx, [ebp - 0x3e0]
push edx
call fcn.005de123
add esp, 4
test eax, eax
je 0x5b779c
lea eax, [ebp - 0x3e0]
lea ecx, [ebp - 0x54]
push eax
lea edx, [ebp - 0x9f0]
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
lea ecx, [ebp - 0x360]
push 0x6c4f40
push ecx
call fcn.005df06c
lea edx, [ebp - 0x360]
push edx
call fcn.005e016e
add esp, 0x1c
test eax, eax
je 0x5b784a
call fcn.005e0d7f
cmp dword [eax], 0xd
je 0x5b784a
call fcn.005e0d7f
cmp dword [eax], 0x11
je 0x5b784a
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x9f0]
push eax
lea edx, [ebp - 0x34]
push ecx
push edx
lea eax, [ebp - 0x360]
push 0x6c4f14
push eax
call fcn.005df06c
lea ecx, [ebp - 0x360]
push ecx
call fcn.005e016e
add esp, 0x18
test eax, eax
je 0x5b784a
call fcn.005e0d7f
cmp dword [eax], 0xd
je 0x5b784a
call fcn.005e0d7f
cmp dword [eax], 0x11
je 0x5b784a
lea edx, [ebp - 0x360]
lea ecx, [ebp + 0xc]
push edx
call fcn.005fa919
mov esi, dword [0x6ed568]
mov byte [ebp - 4], 2
call fcn.005e0d7f
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.005f368b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x414]
add esp, 0x10
push 1
push eax
call fcn.004ab540
mov ecx, dword [0x6ed564]
mov edx, dword [ebp - 0x14]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
jmp 0x5b7f05
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x158]
push 0x6be6b8
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
push eax
call fcn.005de210
add esp, 8
test eax, eax
je 0x5b79c8
mov eax, dword [ebp + 8]
test eax, eax
je 0x5b78e3
mov ecx, dword [ebx]
push 0x56
lea edx, [ebp - 0x158]
push ecx
push edx
call fcn.005de680
add esp, 0xc
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x1c]
push eax
call fcn.005fa8c7
push 0x5f
push 0x2e
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.005f3071
mov edi, dword [ebp - 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 4], 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1c]
call fcn.005fa859
jmp 0x5b7a5a
mov ecx, dword [ebx + 8]
push 0x3d
push ecx
call fcn.005df0e0
mov edx, dword [ebx + 8]
push 0x3f
push edx
mov esi, eax
call fcn.005df0e0
mov edi, eax
mov eax, dword [ebx + 8]
push 0x2f
push eax
call fcn.005df0e0
add esp, 0x18
cmp edi, esi
jae 0x5b7918
cmp esi, eax
jbe 0x5b7916
inc esi
jmp 0x5b7924
cmp edi, esi
jbe 0x5b7921
cmp edi, eax
lea esi, [edi + 1]
ja 0x5b7924
lea esi, [eax + 1]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x1e
jbe 0x5b799e
push 0x1e
lea ecx, [ebp - 0x158]
push esi
push ecx
call fcn.005de680
push 0x2e
push esi
call fcn.005df0e0
mov edx, eax
add esp, 0x14
test edx, edx
je 0x5b7a63
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jae 0x5b7a63
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [ebp - 0x158]
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x5b7a63
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x5b7a63
mov esi, dword [ebx + 8]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x1e
jbe 0x5b7a35
push 0x1e
lea ecx, [ebp - 0x158]
push esi
push ecx
call fcn.005de680
push 0x2e
push esi
call fcn.005df0e0
mov edx, eax
add esp, 0x14
test edx, edx
je 0x5b7a5a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jae 0x5b7a5a
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [ebp - 0x158]
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x5b7a55
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp edx, ebx
jne 0x5b7a93
xor ebx, ebx
push ebx
call fcn.005df989
mov ecx, dword [0x6edb10]
add esp, 4
inc ecx
mov dword [0x6edb10], ecx
push ecx
push eax
lea ecx, [ebp - 0x158]
push 0x6e0664
push ecx
call fcn.005deb38
add esp, 0x10
jmp 0x5b7aba
lea edi, [ebp - 0x158]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x5b7aba
push edx
lea edx, [ebp - 0x158]
push 0x6bc140
push edx
call fcn.005deb38
add esp, 0xc
lea eax, [ebp - 0x158]
lea ecx, [ebp - 0x18]
push eax
call fcn.005fa8c7
push 0x2d
push 0x3a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.005f3071
push 0x2d
push 0x2a
lea ecx, [ebp - 0x18]
call fcn.005f3071
push 0x2d
push 0x3f
lea ecx, [ebp - 0x18]
call fcn.005f3071
push 0x2d
push 0x7c
lea ecx, [ebp - 0x18]
call fcn.005f3071
push 0x2d
push 0x3c
lea ecx, [ebp - 0x18]
call fcn.005f3071
push 0x2d
push 0x3e
lea ecx, [ebp - 0x18]
call fcn.005f3071
push 0x2d
push 0x22
lea ecx, [ebp - 0x18]
call fcn.005f3071
push 0x2d
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.005f3071
push 0x2d
push 0x25
lea ecx, [ebp - 0x18]
call fcn.005f3071
push 0x2d
push 0x2f
lea ecx, [ebp - 0x18]
call fcn.005f3071
mov edi, dword [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x158]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x158]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp eax, ecx
jge 0x5b7b94
cmp byte [ebp + eax - 0x158], 0x20
jge 0x5b7b91
mov byte [ebp + eax - 0x158], 0x2d
inc eax
jmp 0x5b7b7b
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x24], bx
call fcn.00401070
lea ecx, [ebp - 0x158]
test ecx, ecx
je 0x5b7c0c
lea edi, [ebp - 0x158]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5b7c0c
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
lea edx, [ebp - 0x158]
push 0xffffffffffffffff
push edx
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x5b7c07
lea eax, [eax + eax + 2]
push eax
call fcn.005f6c5c
add esp, 4
cmp eax, ebx
mov dword [ebp - 0x28], eax
je 0x5b7c15
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x158]
push ecx
push eax
push 0xffffffffffffffff
push edx
push ebx
push ebx
call esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
jmp 0x5b7c15
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov bl, 5
test eax, eax
mov byte [ebp - 4], bl
jne 0x5b7c21
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xbf0]
lea edx, [ebp - 0xdf0]
push ecx
push edx
lea ecx, [ebp - 0x9f0]
lea edx, [ebp - 0x34]
push ecx
push edx
push eax
call fcn.005deee8
mov edi, dword [ebp + 8]
add esp, 0x14
lea eax, [ebp - 0xdf0]
lea ecx, [ebp - 0x360]
push edi
push eax
push ecx
lea edx, [ebp - 0x5e8]
push 0x6e0650
push edx
call fcn.005df06c
mov eax, dword [ebp - 0x28]
add esp, 0x14
test eax, eax
jne 0x5b7c73
lea eax, [ebp - 0x24]
push edi
mov edi, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5e8]
mov ecx, dword [edi + 0x410]
push eax
call fcn.0054f680
lea ecx, [ebp - 0x5e8]
push ecx
call fcn.005e016e
add esp, 4
test eax, eax
jne 0x5b7d6d
lea edx, [ebp - 0x5e8]
lea eax, [ebp - 0x14]
push edx
push 0x6e0634
push eax
call fcn.005f368b
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, dword [edi + 0x410]
call fcn.0054f300
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x5b7cd5
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x5e8]
push eax
lea ecx, [ebp - 0x7f0]
push 0x6bd544
push ecx
call fcn.005df06c
mov eax, dword [edi + 0x2c]
add esp, 0x10
test eax, eax
je 0x5b7d01
push eax
call fcn.005f6c85
add esp, 4
lea edx, [ebp - 0x5e8]
push edx
call fcn.005de123
lea eax, [eax + eax + 2]
push eax
call fcn.005f6c5c
add esp, 8
mov dword [edi + 0x2c], eax
test eax, eax
jne 0x5b7f2e
push 0x6e0608
mov ecx, edi
call fcn.005b69d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005fa859
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005fa859
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x360]
push edi
push edx
lea eax, [ebp - 0x5e8]
push 0x6e05f8
push eax
call fcn.005df06c
add esp, 0x10
lea ecx, [ebp - 0xbf0]
lea edx, [ebp - 0x158]
push ecx
push edi
push 0x6e05f0
push edx
call fcn.005deb38
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00401070
lea eax, [ebp - 0x158]
test eax, eax
je 0x5b7e0d
lea edi, [ebp - 0x158]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5b7e0d
push eax
push eax
lea ecx, [ebp - 0x158]
push 0xffffffffffffffff
push ecx
push eax
push eax
call esi
test eax, eax
mov dword [ebp - 0x20], eax
je 0x5b7e0d
lea edx, [eax + eax + 2]
push edx
call fcn.005f6c5c
add esp, 4
mov dword [ebp - 0x28], eax
test eax, eax
je 0x5b7e14
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x158]
push ecx
push eax
push 0xffffffffffffffff
push edx
push 0
push 0
call esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x5b7e17
lea eax, [ebp - 0x24]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x2c]
push esi
push eax
mov ecx, dword [edi + 0x410]
lea eax, [ebp - 0x5e8]
push eax
call fcn.0054f680
lea ecx, [ebp - 0x5e8]
push ecx
call fcn.005e016e
add esp, 4
test eax, eax
jne 0x5b7e70
lea edx, [ebp - 0x5e8]
lea eax, [ebp - 0x14]
push edx
push 0x6e0634
push eax
call fcn.005f368b
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov ecx, dword [edi + 0x410]
call fcn.0054f300
jmp 0x5b7ccb
call fcn.005e0d7f
cmp dword [eax], 0xd
je 0x5b7ccb
call fcn.005e0d7f
cmp dword [eax], 0x11
je 0x5b7ccb
lea edx, [ebp - 0x5e8]
lea ecx, [ebp + 0xc]
push edx
call fcn.005fa919
mov esi, dword [0x6ed568]
mov byte [ebp - 4], 6
call fcn.005e0d7f
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x14]
push esi
push edx
call fcn.005f368b
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi + 0x414]
add esp, 0x10
push 1
push eax
call fcn.004ab540
mov ecx, dword [0x6ed564]
mov edx, dword [ebp - 0x14]
push 0x50030
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.005fa859
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00401070
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.005fa859
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005fa859
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x5e8]
push ecx
push eax
call fcn.005de2e9
add esp, 8
test esi, esi
je 0x5b8000
mov eax, dword [edi + 0x418]
test eax, eax
jne 0x5b7f68
push esi
mov ecx, edi
call fcn.005bd090
test al, al
jne 0x5b7f68
lea edx, [ebp - 0x7f0]
push edx
jmp 0x5b8195
lea eax, [ebp - 0x7f0]
push eax
call fcn.005de123
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [eax + eax + 2]
mov eax, dword [edi + 0x418]
lea edx, [ebp - 0x7f0]
push ecx
push edx
push 1
push 0
push 0x6d905c
push eax
call esi
lea ecx, [ebp - 0x5e8]
push ecx
call fcn.005de123
mov ecx, dword [edi + 0x418]
add esp, 4
lea edx, [eax + eax + 2]
lea eax, [ebp - 0x5e8]
push edx
push eax
push 1
push 0
push 0x6dfb34
push ecx
call esi
mov edx, dword [edi + 0x410]
add edx, 4
push edx
call fcn.005de123
mov ecx, dword [edi + 0x410]
mov edx, dword [edi + 0x418]
add esp, 4
lea eax, [eax + eax + 2]
add ecx, 4
push eax
push ecx
push 1
push 0
push 0x6dfb1c
push edx
call esi
jmp 0x5b818e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5b818e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5b818e
lea eax, [ebp - 0x38]
lea ecx, [ebp + 8]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push 0x6dfb7c
push reloc.WS2_32.dll_accept
call esi
test eax, eax
jne 0x5b818e
mov edx, dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
mov eax, dword [0x6e7b6c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
push ecx
push 0x6dfb48
push edx
mov byte [ebp - 4], 7
call fcn.005f368b
add esp, 0xc
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x38]
lea ecx, [ebp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push edx
push reloc.WS2_32.dll_accept
call esi
test eax, eax
jne 0x5b8180
mov eax, dword [ebp + 8]
push eax
call edi
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x1c]
push 0x6c5a40
push eax
call fcn.005f368b
add esp, 0x10
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x38]
lea edx, [ebp + 8]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x6ec0c8
push 0
push eax
push reloc.WS2_32.dll_accept
call esi
test eax, eax
jne 0x5b8180
lea ecx, [ebp - 0x7f0]
push ecx
call fcn.005de123
mov ecx, dword [ebp + 8]
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [eax + eax + 2]
lea eax, [ebp - 0x7f0]
push edx
push eax
push 1
push 0
push 0x6d905c
push ecx
call esi
lea edx, [ebp - 0x5e8]
push edx
call fcn.005de123
mov edx, dword [ebp + 8]
add esp, 4
lea eax, [eax + eax + 2]
lea ecx, [ebp - 0x5e8]
push eax
push ecx
push 1
push 0
push 0x6dfb34
push edx
call esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x410]
add ecx, 4
push ecx
call fcn.005de123
lea edx, [eax + eax + 2]
mov eax, dword [ebp - 0x2c]
add esp, 4
mov ecx, dword [eax + 0x410]
add ecx, 4
push edx
mov edx, dword [ebp + 8]
push ecx
push 1
push 0
push 0x6dfb1c
push edx
call esi
mov eax, dword [ebp + 8]
push eax
call edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.005fa859
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x7f0]
push ecx
mov ecx, edi
call fcn.005bb480
lea ecx, [ebp - 0x28]
mov esi, eax
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005fa859
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005fa859
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc