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

Disassembly:
push ebp
lea ebp, [esp - 0x13a8]
mov eax, 0x13a8
call fcn.006222c0
push 0xffffffffffffffff
push 0x64c765
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x13a4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov edi, dword [ebp + 0x13b4]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.004024f0
mov byte [ebp - 4], 1
lea edx, [ebp + 0x1384]
cmp byte [ebp + 0x13b0], bl
je 0x476ae1
mov ecx, str..txt
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x476ab0
mov eax, dword [0x75eee8]
push eax
mov ecx, dword [0x75ef48]
push ecx
push str._s__.txt_.txt_s__._.
lea edx, [ebp - 0x14]
push edx
call fcn.00402f60
add esp, 0x10
jmp 0x476b0e
mov ecx, str..ef2
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x476ae6
mov eax, dword [0x75ef4c]
push eax
push str._s__.ef2__.ief_.ef2_.ief
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f60
add esp, 0xc
push esi
mov edx, dword [ebp - 0x14]
push edx
push 0x1004
push ebx
lea eax, [ebp + 0x1384]
push eax
push 1
lea ecx, [ebp]
call fcn.00424a40
mov byte [ebp - 4], 2
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x476b33
sub eax, edx
sar eax, 1
jne 0x476c40
mov dword [ebp - 0x20], 0x410
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp + 0xf74]
push edx
push ebx
push ebx
push str.ExpImpIniPath
mov eax, dword [0x75dbe4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x476b94
mov eax, dword [0x75dc94]
cmp eax, ebx
jne 0x476b7f
mov eax, 0x75dc98
push 0x104
push eax
lea ecx, [ebp + 0xf74]
push ecx
call fcn.0062450d
add esp, 0xc
lea eax, [ebp + 0xf74]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x476ba0
sub eax, edx
sar eax, 1
je 0x476bba
lea edx, [ebp + 0xf74]
mov dword [ebp + 0x30], edx
lea ecx, [ebp]
call fcn.00424300
cmp eax, 1
jne 0x476d1a
push 0x104
lea ecx, [ebp]
call fcn.00424380
push eax
lea eax, [ebp + 0xf74]
push eax
call fcn.0062450d
push 0x5c
lea ecx, [ebp + 0xf74]
push ecx
call fcn.006206a1
add esp, 0x14
cmp eax, ebx
je 0x476c40
xor edx, edx
mov word [eax], dx
lea eax, [ebp + 0xf74]
lea edx, [eax + 2]
jmp 0x476c10
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x476c10
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp + 0xf74]
push ecx
push 1
push ebx
push str.ExpImpIniPath
mov edx, dword [0x75dbe4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x24
call fcn.005f4e18
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x476c60
mov ecx, eax
call fcn.004274a0
mov esi, eax
jmp 0x476c62
xor esi, esi
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x476d1a
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x476c73
sub eax, edx
sar eax, 1
je 0x476c88
mov eax, edi
jmp 0x476c90
lea ecx, [ebp]
call fcn.00424380
push ebx
push eax
lea ecx, [ebp + 0xb68]
call fcn.0054b490
mov byte [ebp - 4], 4
push esi
lea ecx, [ebp + 0xb68]
cmp byte [ebp + 0x13b0], bl
je 0x476cb7
call fcn.0054b5f0
jmp 0x476cbc
call fcn.0054bbe0
cmp al, bl
jne 0x476d35
push 0x10030
cmp byte [ebp + 0x13b0], bl
je 0x476ce3
mov eax, dword [0x75ec58]
push eax
mov ecx, dword [0x75ec5c]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
push eax
jmp 0x476cf8
mov ecx, dword [0x75ec58]
push ecx
mov edx, dword [0x75ec60]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00473680
add esp, 0x10
mov edx, dword [esi]
push 1
mov ecx, esi
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xb68]
call fcn.0054b220
mov byte [ebp - 4], 1
mov dword [ebp], vtable.MyCFileDialogA.0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402560
jmp 0x476de8
cmp dword [esi + 8], ebx
jne 0x476d8e
push 0x10040
mov ecx, dword [0x75ec58]
push ecx
mov edx, dword [0x75ec64]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
push ecx
call fcn.00473680
add esp, 0x10
mov edx, dword [esi]
push 1
mov ecx, esi
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xb68]
call fcn.0054b220
mov byte [ebp - 4], 1
mov dword [ebp], vtable.MyCFileDialogA.0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402560
jmp 0x476de8
push esi
push 0x1485
push 0x111
mov ecx, dword [ebp - 0x18]
call fcn.0042ec10
jmp 0x476d0b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x13a4]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x13a8
mov esp, ebp
pop ebp
ret 8