Function at 0x5076b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fae6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x60a070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], eax
mov word [ebp - 0x25c], ax
cmp word [ebp - 0x218], ax
jne 0x50773b
xor ecx, ecx
jmp 0x507753
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x507744
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00413c10
mov byte [ebp - 4], 1
lea eax, [ebp - 0x25c]
cmp dword [ebp - 0x248], 8
cmovae eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
cmp word [edx], 0
jne 0x507791
xor ecx, ecx
jmp 0x5077a5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x507796
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.00413c10
mov eax, dword [ebp - 0x248]
cmp eax, 8
jb 0x5077d0
inc eax
lea ecx, [ebp - 0x25c]
push eax
push dword [ebp - 0x25c]
call fcn.00414580
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x507915
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], eax
push ecx
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x23c], 4
push ecx
lea eax, [ebp - 0x234]
mov dword [ebp - 0x240], 4
cmovae eax, dword [ebp - 0x234]
push 0
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x5078c1
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x21c]
push 4
push ecx
push 4
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push 0
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x507905
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x507937
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.00414580
jmp 0x507937
test eax, eax
jne 0x507891
mov eax, dword [ebp - 0x238]
cmp eax, dword [ebp - 0x21c]
je 0x507911
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x21c]
push 4
push ecx
push 4
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push 0
push eax
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x507911
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov bl, 1
jmp 0x507917
xor bl, bl
mov ecx, dword [ebp - 0x220]
cmp ecx, 8
jb 0x507935
inc ecx
push ecx
push dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.00414580
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret