Function at 0x407950
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf4cb
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x5035d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x44c], eax
mov eax, reloc.WS2_32.dll_bind
cmp ecx, 1
jne 0x40799f
mov eax, accept
jmp 0x4079b3
cmp ecx, 2
jne 0x4079ab
mov eax, reloc.WS2_32.dll_accept
jmp 0x4079b3
cmp ecx, 3
mov edx, eax
cmove eax, edx
mov ecx, dword [ebp + 0x14]
mov edx, 0x20019
cmp ecx, 0x40
je 0x4079c5
cmp ecx, 1
jne 0x4079ca
mov edx, 0x20119
lea ecx, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push ecx
push edx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4079ed
xor eax, eax
jmp 0x407c91
push 0x412
lea eax, [ebp - 0x424]
mov dword [ebp - 0x440], 0x208
push 0
push eax
call fcn.004a4df0
add esp, 0xc
mov dword [ebp - 0x444], 1
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x444]
push eax
push 0
push dword [ebp - 0x44c]
push dword [ebp - 0x448]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407c7e
lea esi, [eax + 1]
cmp dword [ebp + 0x18], eax
je 0x407c7e
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], 7
lea edx, [ecx + 2]
mov word [ebp - 0x43c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407a74
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x43c]
call fcn.00408140
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x43c]
push dword [ebp - 0x44c]
cmp dword [ebp - 0x428], 8
mov esi, dword [ebp - 0x42c]
mov edx, esi
cmovae ecx, dword [ebp - 0x43c]
push 1
push 0x4f6078
push 0
call fcn.00408290
add esp, 0x10
lea ecx, [ebp - 0x43c]
inc eax
push esi
push eax
lea eax, [ebp - 0x464]
push eax
call fcn.00407e10
mov esi, eax
lea eax, [ebp - 0x43c]
cmp eax, esi
je 0x407b22
mov ecx, eax
call fcn.00407ef0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x43c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x42c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x450]
cmp edx, 8
jb 0x407b62
mov ecx, dword [ebp - 0x464]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407b58
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407cac
push edx
push ecx
call fcn.004a1326
add esp, 8
push dword [ebp - 0x44c]
cmp dword [ebp - 0x428], 8
lea ecx, [ebp - 0x43c]
mov edx, dword [ebp - 0x42c]
cmovae ecx, dword [ebp - 0x43c]
push 1
push 0x4f6078
push 0
call fcn.00408290
add esp, 0x10
lea ecx, [ebp - 0x43c]
push eax
push 0
lea eax, [ebp - 0x464]
push eax
call fcn.00407e10
mov esi, eax
lea eax, [ebp - 0x43c]
cmp eax, esi
je 0x407be5
mov ecx, eax
call fcn.00407ef0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x43c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x42c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x450]
cmp edx, 8
jb 0x407c25
mov ecx, dword [ebp - 0x464]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407c1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407cb1
push edx
push ecx
call fcn.004a1326
add esp, 8
cmp dword [ebp - 0x428], 8
lea eax, [ebp - 0x43c]
cmovae eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x428]
mov esi, eax
cmp edx, 8
jb 0x407c7e
mov ecx, dword [ebp - 0x43c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407c74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407cb6
push edx
push ecx
call fcn.004a1326
add esp, 8
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x407c8f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret
call fcn.004a8d39
call fcn.004a8d39
call fcn.004a8d39
int3