Function at 0x412cfe
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2d4
mov eax, dword [0x6c10c8]
xor eax, esp
mov dword [esp + 0x2d0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], eax
push edi
mov edi, ecx
mov dword [esp + 0x24], edi
test ebx, ebx
je 0x4134fc
test edi, edi
jne 0x412d47
push 0x8496dd
jmp 0x413501
xor edx, edx
mov dword [esp + 0x4c], edx
test esi, esi
je 0x412d78
movzx ecx, word [edi + 6]
and ecx, 0xf
imul eax, ecx, 0xc
cmp dword [eax + 0x6c2310], edx
jne 0x412e08
call fcn.00412ca3
xor edx, edx
test eax, eax
jne 0x412e08
mov dword [esi], edx
mov eax, dword [ebp + 0xc]
test al, 5
push 0
pop ebx
setne bl
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
test al, 2
je 0x412d92
or ebx, 2
test al, 0x10
je 0x412d99
or ebx, 8
lea eax, [esp + 0x14]
push eax
push ebx
push edi
call fcn.00412bda
mov edi, dword [esp + 0x14]
mov ecx, 0x2001f
test eax, eax
jne 0x4132b4
xor eax, eax
mov esi, dword [esp + 0x24]
mov edx, eax
lea eax, [esp + 0x2d6]
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], eax
mov ecx, esi
xor eax, eax
mov dword [esp + 0x18], ecx
mov word [esp + 0x2d6], ax
test esi, esi
je 0x4132af
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x20], eax
movzx eax, word [ecx + 6]
test al, 0xf
je 0x412e67
and eax, 0xf
test bl, 2
je 0x412e4e
cmp eax, 5
jne 0x412e35
push 4
jmp 0x412e3c
mov dword [ebx], edx
movzx eax, word [edi + 6]
and eax, 0xf
imul eax, eax, 0xc
mov eax, dword [eax + 0x6c2310]
mov dword [esi], eax
xor eax, eax
mov ecx, dword [esp + 0x2dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00573599
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 8
jne 0x412e46
push 9
pop edx
mov dword [esp + 0x20], edx
imul eax, edx, 0xc
jmp 0x412e55
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x412e5f
mov dword [esp + 0x20], eax
imul eax, eax, 0xc
mov edx, dword [eax + 0x6c2310]
mov dword [esp + 0x1c], edx
test edx, edx
jne 0x412f1a
lea eax, [esp + 0x14]
push eax
push ebx
push ecx
call fcn.00412bda
test eax, eax
jne 0x412f12
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
movzx ecx, word [eax + 4]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x412ec3
imul eax, eax, 0xc
mov eax, dword [eax + 0x6c2318]
test eax, eax
je 0x412ec3
push 0x5c
push eax
call fcn.005760f8
pop ecx
pop ecx
lea edx, [eax + 2]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0xc], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x4c]
jne 0x412eb0
sub ecx, dword [esp + 0xc]
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [esp + 0xc], eax
push 0xfffffffffffffffe
pop eax
sub eax, dword [esp + 0xc]
add edi, eax
lea eax, [esp + 0xd0]
cmp edi, eax
jb 0x41335f
push 0x5c
pop eax
push dword [esp + 0xc]
mov word [edi], ax
lea eax, [edi + 2]
push edx
push eax
call fcn.005761a0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x412de9
jmp 0x412f1a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0xd0]
cmp edi, eax
jb 0x4134f5
cmp esi, ecx
je 0x4132ab
test ecx, ecx
je 0x413409
mov eax, dword [ebp + 0xc]
add edi, 2
mov dword [esp + 0xc], edi
test al, 8
jne 0x412f4a
or ebx, 1
mov edi, dword [esp + 0x14]
mov ecx, edx
test al, 4
je 0x4130ef
xor esi, esi
mov dword [esp + 0x18], esi
test edx, edx
jne 0x412f64
mov ecx, dword [edi]
mov eax, ebx
shr eax, 3
and eax, 1
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push esi
push eax
je 0x412f8e
push esi
push 0x2001f
push esi
push esi
push esi
push dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x412f9f
mov edx, dword [esp + 0x14]
push ecx
push 0x2001f
push ecx
push ecx
call fcn.00414ce5
mov esi, eax
cmp esi, 5
jne 0x4130d8
test byte [ebp + 0xc], 1
jne 0x4130d8
mov eax, dword [esp + 0x1c]
mov ecx, eax
test eax, eax
jne 0x412fc0
mov ecx, dword [edi]
cmp dword [esp + 0x2c], 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
je 0x412fe9
xor eax, eax
push eax
push 0x20019
push eax
push eax
push eax
push dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x412ffa
mov edx, dword [esp + 0x14]
push ecx
push 0x20019
push ecx
push ecx
call fcn.00414ce5
mov esi, eax
and ebx, 0xfffffffe
test esi, esi
je 0x4130d8
cmp esi, 2
je 0x4130d8
push dword [esp + 0xc]
lea ecx, [esp + 0xbc]
call fcn.00409613
lea eax, [esp + 0xb8]
mov dword [esp + 0x98], 0x611770
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa0], str.Path
call fcn.004095ee
mov eax, dword [ebp + 0xc]
mov ecx, vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x54], str.Options
mov eax, dword [eax]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x60], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x68], 0x6114b0
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x78], str.Error
push eax
push str.Failed_to_create_key_with_read_only_access
push ecx
mov ecx, 0x65d05e
mov dword [esp + 0x88], esi
call fcn.00414a9e
xor eax, eax
lea ecx, [esp + 0xa0]
push eax
push 1
call fcn.0040968b
xor eax, eax
lea ecx, [esp + 0xb8]
push eax
push 1
call fcn.0040968b
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x413251
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
jmp 0x413251
test edx, edx
jne 0x4130f5
mov ecx, dword [edi]
mov edx, dword [esp + 0xc]
mov eax, ebx
shr eax, 3
and eax, 1
push eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
push eax
push 0x2001f
call fcn.0041298b
mov esi, eax
cmp esi, 5
jne 0x413251
test byte [ebp + 0xc], 1
jne 0x413251
mov eax, dword [esp + 0x1c]
mov ecx, eax
test eax, eax
jne 0x413136
mov ecx, dword [edi]
push dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0x20019
call fcn.0041298b
mov esi, eax
and ebx, 0xfffffffe
cmp esi, 5
jne 0x413163
call fcn.0056ce24
test eax, eax
je 0x41316b
push 2
pop esi
test esi, esi
je 0x413251
cmp esi, 2
je 0x413251
push dword [esp + 0xc]
lea ecx, [esp + 0xbc]
call fcn.00409613
lea eax, [esp + 0xb8]
mov dword [esp + 0x98], 0x611770
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa0], str.Path
call fcn.004095ee
mov eax, dword [ebp + 0xc]
mov ecx, vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x78], str.Options
mov eax, dword [eax]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x84], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
push eax
lea eax, [esp + 0x88]
mov dword [esp + 0x8c], 0x6114b0
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x9c], str.Error
push eax
push str.Failed_to_open_key_with_read_only_access
push ecx
mov ecx, 0x65d060
mov dword [esp + 0xac], esi
call fcn.00414a9e
xor eax, eax
lea ecx, [esp + 0xa0]
push eax
push 1
call fcn.0040968b
xor eax, eax
lea ecx, [esp + 0xb8]
push eax
push 1
call fcn.0040968b
mov ecx, esi
call fcn.004129b9
test eax, eax
je 0x4133ba
cmp dword [esp + 0x1c], 0
je 0x41334c
mov eax, dword [esp + 0x20]
xor ecx, ecx
imul esi, eax, 0xc
cmp dword [esi + 0x6c2318], ecx
je 0x41334c
cmp eax, 4
jl 0x4133b0
push dword [esi + 0x6c2310]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esi + 0x6c2310], eax
call fcn.00412ca3
jmp 0x412db6
mov edi, dword [esp + 0x14]
mov ecx, 0x2001f
test byte [ebp + 0xc], 8
je 0x4134d4
test edi, edi
je 0x41333a
mov eax, ebx
shr eax, 3
and eax, 1
test bl, 1
push eax
lea eax, [esp + 0x14]
push eax
mov eax, 0x20019
cmovne eax, ecx
mov ecx, dword [edi]
push eax
xor edx, edx
call fcn.0041298b
mov esi, eax
test esi, esi
je 0x41333d
mov eax, dword [esp + 0x24]
mov edx, 0x3a7
mov dword [esp + 0x30], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
mov dword [esp + 0x34], str.Error
mov dword [esp + 0x38], esi
mov eax, dword [eax]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
push eax
push str.Failure_returned_attempting_to_open_cached_key
push ecx
mov ecx, 0x65d058
mov dword [esp + 0x50], 0x6114b0
call fcn.004149e1
jmp 0x41333d
push 6
pop esi
mov ecx, esi
call fcn.004129b9
test eax, eax
je 0x4134ad
push edi
call fcn.00412b66
xor eax, eax
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x412db8
inc ecx
mov dword [esp + 0x44], edx
mov edx, 0x3a7
mov dword [esp + 0x40], str.NextSegment
mov dword [esp + 0x34], str.KeyPath
lea eax, [edi + ecx*2]
mov ecx, vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], ecx
push eax
push str.Requested_key_path_is_too_long
mov dword [esp + 0x3c], ecx
mov ecx, 0x8526de
push 0xa
call fcn.0040c147
push 8
pop eax
jmp 0x412e1e
push 0x8496e2
jmp 0x413501
mov ecx, edi
call fcn.00412c70
test esi, esi
jne 0x413402
test byte [ebp + 0xc], 8
mov edx, dword [esp + 0x28]
jne 0x4133ec
push edx
push dword [esp + 0x14]
push ebx
push dword [esp + 0x30]
call fcn.004129dd
test eax, eax
jne 0x413402
push 0x8496e3
jmp 0x413501
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [edx]
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ebx
mov eax, dword [edx]
mov dword [eax + 4], ecx
mov eax, esi
jmp 0x412e1e
push edi
lea ecx, [esp + 0xbc]
call fcn.00409613
lea eax, [esp + 0xb8]
mov dword [esp + 0x98], 0x611770
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0xa0], str.Path
call fcn.004095ee
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x40], vtable.Mso::Logging::StructuredObject_unsigned_int__1_.0
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x48], str.Options
push eax
push ecx
push ecx
mov dword [esp + 0x44], vtable.Mso::Logging::StructuredObject_wchar_t_const___1_.0
mov dword [esp + 0x48], 0x6114b0
call fcn.00414a35
xor ebx, ebx
lea ecx, [esp + 0xa0]
push ebx
push 1
call fcn.0040968b
push ebx
push 1
lea ecx, [esp + 0xc0]
call fcn.0040968b
push 2
jmp 0x4133aa
mov ecx, edi
call fcn.00412c70
test esi, esi
jne 0x4134de
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx]
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ebx
mov eax, dword [edx]
mov dword [eax + 4], ecx
jmp 0x4134de
mov edx, dword [esp + 0x28]
xor eax, eax
mov esi, eax
mov dword [edx], edi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x413402
mov dword [eax], 2
jmp 0x413402
push 0x8496df
jmp 0x413501
push 0x8496dc
call fcn.0056c1fd
int3