Function at 0x4768b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50642b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1130
call fcn.004dd3a0
mov eax, dword [0x5732cc]
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 dword [ebp - 4], 0
push 0x468ad0
call fcn.004dbbc8
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x476912
cmp dword [ebp + 0xc], 1
je 0x476912
cmp dword [ebp + 0xc], 2
je 0x476912
cmp dword [ebp + 0xc], 3
jne 0x476921
mov ecx, 0x57721c
call fcn.00415d40
mov dword [0x5712bc], eax
push 0x5771e8
lea ecx, [ebp - 0x1078]
call fcn.0041ea10
mov byte [ebp - 4], 1
mov byte [ebp - 0x69], 0
mov byte [ebp - 0x1070], 0
push 0xfff
push 0
lea eax, [ebp - 0x106f]
push eax
call fcn.004dba80
add esp, 0xc
mov dword [ebp - 0x1074], 0x1000
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x1074]
push ecx
lea edx, [ebp - 0x1070]
push edx
lea eax, [ebp - 0x70]
push eax
push str.LogfileDirectory
mov ecx, 0x5771d8
call fcn.00415d40
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4769f7
cmp dword [ebp - 0x70], 1
jne 0x4769f7
cmp dword [ebp - 0x1074], 0
jbe 0x4769f7
movsx ecx, byte [ebp - 0x1070]
test ecx, ecx
je 0x4769f7
lea edx, [ebp - 0x1070]
push edx
mov ecx, 0x577374
call fcn.0041ba10
mov ecx, 0x577374
call fcn.0040e2f0
sub eax, 1
push eax
mov ecx, 0x577374
call fcn.0041d2d0
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x4769f2
push 0x51e868
mov ecx, 0x577374
call fcn.00401920
jmp 0x476bc5
push 0
call fcn.0046a840
add esp, 4
push eax
lea ecx, [ebp - 0x107c]
call fcn.0041ad50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x107c]
push ecx
push 0x51e86c
call fcn.0042f890
movzx edx, al
test edx, edx
je 0x476b6c
lea eax, [ebp - 0x1108]
push eax
call fcn.0046fe50
add esp, 4
mov dword [ebp - 0x1128], eax
mov ecx, dword [ebp - 0x1128]
mov dword [ebp - 0x112c], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x112c]
call fcn.00415d40
push eax
mov ecx, 0x577374
call fcn.0041ba10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1108]
call fcn.00416630
push 0
push 1
lea edx, [ebp - 0x1080]
push edx
call fcn.0046e4b0
add esp, 0xc
mov byte [ebp - 4], 4
cmp dword [ebp + 0xc], 1
jne 0x476b34
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x476b34
lea ecx, [ebp - 0x1078]
call fcn.00424990
lea ecx, [ebp - 0x1080]
call fcn.00424990
lea ecx, [ebp - 0x1078]
call fcn.00415d40
push eax
lea ecx, [ebp - 0x1080]
call fcn.00424960
mov dword [ebp - 0x1084], eax
cmp dword [ebp - 0x1084], 0xffffffff
je 0x476b34
mov ecx, dword [ebp - 0x1084]
push ecx
lea edx, [ebp - 0x110c]
push edx
lea ecx, [ebp - 0x1080]
call fcn.0042a6e0
mov dword [ebp - 0x1130], eax
mov eax, dword [ebp - 0x1130]
mov dword [ebp - 0x1134], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1134]
call fcn.00415d40
push eax
mov ecx, 0x577374
call fcn.0041ba10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x110c]
call fcn.00416630
mov ecx, 0x577374
call fcn.00404160
movzx ecx, al
test ecx, ecx
je 0x476b5b
lea ecx, [ebp - 0x1080]
call fcn.00415d40
push eax
mov ecx, 0x577374
call fcn.0041ba10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1080]
call fcn.00416630
jmp 0x476bb6
lea edx, [ebp - 0x1110]
push edx
call fcn.00470190
add esp, 4
mov dword [ebp - 0x1138], eax
mov eax, dword [ebp - 0x1138]
mov dword [ebp - 0x113c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x113c]
call fcn.00415d40
push eax
mov ecx, 0x577374
call fcn.0041ba10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1110]
call fcn.00416630
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x107c]
call fcn.00416630
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1140], ecx
cmp dword [ebp - 0x1140], 0
je 0x476be2
cmp dword [ebp - 0x1140], 1
je 0x476c08
jmp 0x476c2b
mov edx, dword [0x5712bc]
push edx
mov ecx, 0x577374
call fcn.00401920
push 0x51e874
mov ecx, 0x577390
call fcn.0041ba10
mov byte [ebp - 0x69], 1
jmp 0x476c2b
mov eax, dword [0x5712bc]
push eax
mov ecx, 0x577374
call fcn.00401920
push str.SysTray_Icon
mov ecx, 0x577390
call fcn.0041ba10
mov byte [ebp - 0x69], 1
movzx ecx, byte [ebp - 0x69]
test ecx, ecx
jne 0x476c3d
mov ecx, 0x577374
call fcn.004788d0
movzx edx, byte [ebp - 0x69]
test edx, edx
je 0x477252
lea eax, [ebp - 0x1074]
push eax
lea ecx, [ebp - 0x1070]
push ecx
lea edx, [ebp - 0x70]
push edx
push str.LoggingSettings
mov ecx, 0x5771d8
call fcn.00415d40
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x47724d
cmp dword [ebp - 0x70], 1
jne 0x47724d
cmp dword [ebp - 0x1074], 0
jbe 0x47724d
movsx eax, byte [ebp - 0x1070]
test eax, eax
je 0x47724d
lea ecx, [ebp - 0x10b4]
call fcn.00401860
mov byte [ebp - 4], 7
mov byte [ebp - 0x10b8], 0
mov byte [ebp - 0x10b7], 0
mov dword [ebp - 0x1088], 0x1000
mov dword [ebp - 0x10bc], 0
jmp 0x476ce6
mov ecx, dword [ebp - 0x10bc]
add ecx, 1
mov dword [ebp - 0x10bc], ecx
mov edx, dword [ebp - 0x10bc]
cmp edx, dword [ebp - 0x1088]
jge 0x476db3
mov eax, dword [ebp - 0x10bc]
movsx ecx, byte [ebp + eax - 0x1070]
test ecx, ecx
je 0x476db3
mov edx, dword [ebp - 0x10bc]
mov al, byte [ebp + edx - 0x1070]
mov byte [ebp - 0x10b8], al
mov ecx, dword [ebp - 0x10bc]
movsx edx, byte [ebp + ecx - 0x1070]
push edx
call fcn.004dba66
add esp, 4
test eax, eax
jne 0x476dae
mov eax, dword [0x5712b4]
push eax
lea ecx, [ebp - 0x10b8]
push ecx
call fcn.004773e0
add esp, 8
test eax, eax
jne 0x476dae
mov edx, dword [ebp - 0x10bc]
movsx eax, byte [ebp + edx - 0x1070]
push eax
call fcn.004e03bf
add esp, 4
test eax, eax
je 0x476d94
mov ecx, dword [ebp - 0x10bc]
movsx edx, byte [ebp + ecx - 0x1070]
push edx
call fcn.004e0301
add esp, 4
mov ecx, dword [ebp - 0x10bc]
mov byte [ebp + ecx - 0x1070], al
mov edx, dword [ebp - 0x10bc]
movzx eax, byte [ebp + edx - 0x1070]
push eax
lea ecx, [ebp - 0x10b4]
call fcn.00404d20
jmp 0x476cd7
lea ecx, [ebp - 0x1098]
call fcn.0041ba00
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10b4]
call fcn.00404160
movzx ecx, al
test ecx, ecx
jne 0x476e60
mov edx, dword [0x5712ac]
push edx
lea ecx, [ebp - 0x10b4]
call fcn.00401950
push eax
call fcn.0042d770
add esp, 8
mov dword [ebp - 0x10c0], eax
jmp 0x476e11
mov eax, dword [0x5712ac]
push eax
push 0
call fcn.0042d770
add esp, 8
mov dword [ebp - 0x10c0], eax
cmp dword [ebp - 0x10c0], 0
je 0x476e4a
mov ecx, dword [ebp - 0x10c0]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00401880
mov byte [ebp - 4], 9
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x1098]
call fcn.0041c050
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x30]
call fcn.004018f0
jmp 0x476dfb
lea ecx, [ebp - 0x1098]
call fcn.00494920
movzx eax, al
test eax, eax
je 0x476e60
mov byte [ebp - 0x69], 0
call fcn.00477400
lea ecx, [ebp - 0x1098]
call fcn.00494920
movzx ecx, al
test ecx, ecx
jne 0x477220
lea ecx, [ebp - 0x10d0]
call fcn.00478b80
mov byte [ebp - 4], 0xa
mov byte [ebp - 0x10d1], 0
lea ecx, [ebp - 0x1098]
call fcn.0041b930
mov dword [ebp - 0x10d8], eax
mov dword [ebp - 0x10dc], 0
jmp 0x476ebd
mov edx, dword [ebp - 0x10dc]
add edx, 1
mov dword [ebp - 0x10dc], edx
mov eax, dword [ebp - 0x10dc]
cmp eax, dword [ebp - 0x10d8]
jge 0x477042
mov ecx, dword [str.clearpermodulesettings]
push ecx
mov edx, dword [ebp - 0x10dc]
push edx
lea ecx, [ebp - 0x1098]
call fcn.00472970
push eax
call fcn.00479310
add esp, 8
movzx eax, al
test eax, eax
je 0x476f04
mov byte [ebp - 0x10d1], 1
jmp 0x47703d
mov ecx, dword [0x5712b0]
push ecx
mov edx, dword [ebp - 0x10dc]
push edx
lea ecx, [ebp - 0x1098]
call fcn.00472970
mov ecx, eax
call fcn.00401950
push eax
call fcn.0042d770
add esp, 8
mov dword [ebp - 0x10e4], eax
mov dword [ebp - 0x10e0], 0
cmp dword [ebp - 0x10e4], 0
je 0x477037
mov eax, dword [ebp - 0x10e4]
movsx ecx, byte [eax]
test ecx, ecx
je 0x477037
mov edx, dword [0x5712b0]
push edx
push 0
call fcn.0042d770
add esp, 8
mov dword [ebp - 0x10e0], eax
cmp dword [ebp - 0x10e0], 0
je 0x476f88
mov eax, dword [ebp - 0x10e0]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x476f91
mov byte [ebp - 0x69], 0
jmp 0x477042
mov edx, dword [ebp - 0x10e4]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00401880
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x111c]
push eax
lea ecx, [ebp - 0x10d0]
call fcn.00441f50
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x1118]
push edx
lea ecx, [ebp - 0x10d0]
call fcn.0045a470
mov ecx, eax
call fcn.00459440
mov byte [ebp - 0x1111], al
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4c]
call fcn.004018f0
movzx eax, byte [ebp - 0x1111]
test eax, eax
je 0x47702f
mov ecx, dword [ebp - 0x10e4]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00401880
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x10e0]
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x10d0]
call fcn.00478be0
mov ecx, eax
call fcn.0041ba10
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x68]
call fcn.004018f0
jmp 0x477035
mov byte [ebp - 0x69], 0
jmp 0x477042
jmp 0x47703d
mov byte [ebp - 0x69], 0
jmp 0x477042
jmp 0x476eae
movzx ecx, byte [ebp - 0x69]
test ecx, ecx
je 0x477211
movzx edx, byte [ebp - 0x10d1]
test edx, edx
je 0x477063
mov ecx, 0x5773c0
call fcn.00478a90
lea eax, [ebp - 0x10e8]
push eax
lea ecx, [ebp - 0x10d0]
call fcn.00459930
jmp 0x477082
lea ecx, [ebp - 0x10e8]
call fcn.00478d20
lea ecx, [ebp - 0x1120]
push ecx
lea ecx, [ebp - 0x10d0]
call fcn.00441f50
push eax
lea ecx, [ebp - 0x10e8]
call fcn.0045c1a0
movzx edx, al
test edx, edx
je 0x477211
mov byte [ebp - 0x10ed], 0
mov dword [ebp - 0x10ec], 0x12
mov dword [ebp - 0x10f4], 0
jmp 0x4770d7
mov eax, dword [ebp - 0x10f4]
add eax, 1
mov dword [ebp - 0x10f4], eax
movzx ecx, byte [ebp - 0x10ed]
test ecx, ecx
jne 0x4771fb
mov edx, dword [ebp - 0x10f4]
cmp edx, dword [ebp - 0x10ec]
jge 0x4771fb
mov eax, dword [ebp - 0x10f4]
mov ecx, dword [eax*8 + 0x51e780]
push ecx
lea ecx, [ebp - 0x10e8]
call fcn.00478d00
mov ecx, eax
call fcn.00401950
push eax
call fcn.00421d30
add esp, 8
test eax, eax
jne 0x4771f6
mov dword [ebp - 0x10f8], 4
mov dword [ebp - 0x10fc], 0
jmp 0x47714e
mov edx, dword [ebp - 0x10fc]
add edx, 1
mov dword [ebp - 0x10fc], edx
movzx eax, byte [ebp - 0x10ed]
test eax, eax
jne 0x4771f6
mov ecx, dword [ebp - 0x10fc]
cmp ecx, dword [ebp - 0x10f8]
jge 0x4771f6
mov edx, dword [ebp - 0x10fc]
mov eax, dword [edx*8 + 0x51e834]
push eax
lea ecx, [ebp - 0x10e8]
call fcn.00478d00
add eax, 0x1c
mov ecx, eax
call fcn.00401950
push eax
call fcn.00421d30
add esp, 8
test eax, eax
jne 0x4771f1
mov ecx, dword [ebp - 0x10f4]
cmp dword [ecx*8 + 0x51e784], 0x11
jne 0x4771c3
mov edx, dword [ebp - 0x10fc]
mov eax, dword [edx*8 + 0x51e838]
mov dword [0x57736c], eax
jmp 0x4771ea
mov ecx, dword [ebp - 0x10f4]
lea edx, [ecx*8 + 0x51e784]
push edx
mov ecx, 0x5773c0
call fcn.004789c0
mov ecx, dword [ebp - 0x10fc]
mov edx, dword [ecx*8 + 0x51e838]
mov dword [eax], edx
mov byte [ebp - 0x10ed], 1
jmp 0x47713f
jmp 0x4770c8
movzx eax, byte [ebp - 0x10ed]
test eax, eax
jne 0x47720c
mov byte [ebp - 0x69], 0
jmp 0x477211
jmp 0x477077
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10d0]
call fcn.0045b240
movzx ecx, byte [ebp - 0x69]
test ecx, ecx
jne 0x47722d
call fcn.00477400
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1098]
call fcn.0041bdc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10b4]
call fcn.004018f0
jmp 0x477252
call fcn.00477400
mov dl, byte [ebp - 0x69]
mov byte [ebp - 0x1121], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1078]
call fcn.00416630
mov al, byte [ebp - 0x1121]
jmp 0x4773bd
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.004db901
mov esp, ebp
pop ebp
ret