Function at 0x468370
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44c
mov edi, dword [esp + 0x460]
mov ecx, 1
call fcn.004682a0
test edi, edi
je 0x4683db
cmp dword [edi], 0
je 0x4683db
call fcn.0046d170
mov ecx, dword [edi]
mov dword [esp + 0x184], str.Exception_Code:_0x_08X
mov dword [esp + 0x180], 0x513fa4
mov ecx, dword [ecx]
mov dword [esp + 0x188], ecx
lea edx, [esp + 0x180]
mov ecx, eax
push edx
call fcn.0046ad70
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x468675
mov byte [ecx], 0xa
inc dword [eax + 0x10]
call fcn.004aeb50
test al, al
jne 0x468b58
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 0
push 0x5334cc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x28]
push 0
push 0
push eax
call fcn.004a8080
add esp, 0xc
movzx eax, byte [esp + 0x28]
test al, 1
je 0x468446
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x46844e
test al, 1
je 0x468471
mov eax, dword [esp + 0x30]
mov dword [esp + 0x48], eax
test eax, eax
je 0x46847d
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
jmp 0x46847f
mov ecx, eax
shr ecx, 1
test ecx, ecx
jne 0x46842b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b0bb0
add esp, 4
mov ebp, eax
mov ebx, edx
test byte [esp + 0x28], 1
jne 0x468a88
jmp 0x468a94
lea eax, [esp + 0x29]
mov dword [esp + 0x48], eax
test eax, eax
jne 0x46843b
xor eax, eax
mov dword [esp + 0x4c], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x54]
movsd qword [esp], xmm0
mov dword [esp + 8], 0
call fcn.004a4c90
add esp, 0xc
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov word [esp + 0x190], 0x105
mov dword [esp + 0x180], str.SOFTWAREMicrosoftWindowsWindows_Error_ReportingLocalDumps
mov dword [esp + 0x184], 0x3d
lea ebp, [esp + 0x180]
lea ebx, [esp + 0x70]
mov ecx, ebx
push ebp
call fcn.00465260
test byte [esp + 0x70], 1
je 0x4684e9
mov eax, dword [esp + 0x78]
jmp 0x4684ed
lea eax, [esp + 0x71]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test byte [esp + 0x70], 1
je 0x46851a
push dword [esp + 0x78]
call sub.libc.dll_operator_delete_void_
add esp, 4
xor esi, esi
test edi, edi
jne 0x468524
mov esi, dword [esp + 0xc]
mov dword [esp + 0x70], str.SOFTWAREMicrosoftWindowsWindows_Error_ReportingLocalDumps
mov dword [esp + 0x74], 0x3d
mov dword [esp + 0x78], 0x514080
mov word [esp + 0x80], 0x305
mov dword [esp + 0x180], ebx
mov eax, dword [esp + 4]
mov dword [esp + 0x188], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x18c], eax
mov word [esp + 0x190], 0x502
lea ecx, [esp + 0xc]
push ebp
call fcn.00465260
test byte [esp + 0xc], 1
je 0x468584
mov eax, dword [esp + 0x14]
jmp 0x468588
lea eax, [esp + 0xd]
lea ecx, [esp + 0x34]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test byte [esp + 0xc], 1
jne 0x4685bd
xor edi, edi
test ebx, ebx
jne 0x4685cf
mov edi, dword [esp + 0x34]
test edi, edi
lea ebx, [esp + 0x70]
jne 0x4685d7
jmp 0x4685fb
push dword [esp + 0x14]
call sub.libc.dll_operator_delete_void_
add esp, 4
xor edi, edi
test ebx, ebx
je 0x4685af
test edi, edi
lea ebx, [esp + 0x70]
je 0x4685fb
mov dword [esp + 0x70], 4
push ebx
push ebp
push 0
push 0x10
push str.DumpType
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x468695
mov dword [esp], 0
test esi, esi
je 0x4686ef
mov dword [esp + 0x70], 4
push ebx
push ebp
push 0
push 0x10
push str.DumpType
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4686ef
mov eax, dword [esp + 0x180]
cmp eax, 2
je 0x46870f
cmp eax, 1
je 0x4686e8
test eax, eax
jne 0x4686ef
mov dword [esp + 0xc], 0
push ebx
lea eax, [esp + 0x10]
push eax
push 0
push 0x10
push str.CustomDumpFlags
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4686ef
jmp 0x4686d6
mov ecx, eax
push 1
push 0x513d36
call fcn.0046b680
call fcn.004aeb50
test al, al
je 0x4683e8
jmp 0x468b58
mov eax, dword [esp + 0x180]
cmp eax, 2
je 0x46870f
cmp eax, 1
je 0x4686e8
test eax, eax
jne 0x4685fb
mov dword [esp + 0xc], 0
push ebx
lea eax, [esp + 0x10]
push eax
push 0
push 0x10
push str.CustomDumpFlags
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4685fb
mov eax, dword [esp + 0xc]
mov dword [esp], eax
mov eax, dword [0x533538]
test eax, eax
jne 0x4686f8
jmp 0x46871f
mov dword [esp], 0
mov eax, dword [0x533538]
test eax, eax
je 0x46871f
mov ebp, dword [0x533538]
movzx ebx, byte [ebp]
test bl, 1
je 0x468742
mov ebx, dword [ebp + 4]
mov ebp, dword [ebp + 8]
jmp 0x468745
mov dword [esp], 2
mov eax, dword [0x533538]
test eax, eax
jne 0x4686f8
mov ecx, 0x533538
push 0x469340
push 0x469320
call fcn.0049e9c0
mov ebp, dword [0x533538]
movzx ebx, byte [ebp]
test bl, 1
jne 0x468707
inc ebp
shr ebx, 1
lea edx, [esp + 0x18c]
mov dword [esp + 0x180], edx
mov dword [esp + 0x184], 0
mov dword [esp + 0x188], 0x104
cmp ebx, 0x105
jb 0x468791
lea ecx, [esp + 0x180]
push 1
push ebx
push edx
call fcn.0046e2c0
mov ecx, dword [esp + 0x180]
mov eax, dword [esp + 0x184]
jmp 0x468799
xor eax, eax
mov ecx, edx
test ebx, ebx
je 0x4687ad
add ecx, eax
push ebx
push ebp
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x184]
add eax, ebx
mov dword [esp + 0x184], eax
jne 0x4687ce
lea edx, [esp + 0x180]
mov ecx, edi
call fcn.00469170
test al, al
je 0x4688bc
lea eax, [esp + 0x7c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x104
mov dword [esp + 0x20], edi
mov edi, esi
mov word [esp + 0x1c], 0x105
mov eax, dword [esp + 0x180]
mov ecx, dword [esp + 0x184]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
push 0x1f8
push 1
lea esi, [esp + 0x14]
push esi
call fcn.004a71a0
add esp, 0xc
test eax, eax
je 0x468830
mov ebp, eax
mov ebx, edx
mov esi, edi
mov edi, dword [esp + 0x20]
jmp 0x468a34
mov eax, dword [esp + 0x180]
mov ecx, dword [esp + 0x184]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], 0x514080
mov word [esp + 0x6c], 0x305
lea eax, [esp + 0x5c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
mov word [esp + 0x44], 0x502
lea eax, [esp + 0x34]
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], str..______.dmp
mov word [esp + 0x1c], 0x302
lea eax, [esp + 0x24]
push 0x1b6
push 0
lea ecx, [esp + 0x78]
push ecx
push eax
push esi
call fcn.004a65a0
add esp, 0x14
test eax, eax
mov esi, edi
mov edi, dword [esp + 0x20]
je 0x468952
mov ebp, eax
mov ebx, edx
jmp 0x468a34
lea edx, [esp + 0x180]
mov ecx, esi
call fcn.00469170
lea ecx, [esp + 0x7c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x104
test al, al
jne 0x4687e6
mov word [esp + 0x1c], 0x105
mov eax, dword [esp + 4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], 0x51408e
mov dword [esp + 0x38], 3
sub esp, 0x18
movsd xmm0, qword [esp + 0x4c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x88]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 0x14], 0
call fcn.004a6870
add esp, 0x18
test eax, eax
jne 0x4688b3
push dword [esp + 0x24]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 4
mov ebp, eax
mov eax, dword [0x533504]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x50]
push 0
push 0
push ecx
push dword [esp + 0xc]
mov dword [esp + 0x18], ebp
push ebp
push eax
push ebx
call dword [esp + 0x20]
test eax, eax
je 0x4689b6
call fcn.0046d170
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 0x16
ja 0x4689cb
mov ecx, eax
push 0x17
push str.Wrote_crash_dump_file__
call fcn.0046b680
jmp 0x4689e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b0bb0
add esp, 4
mov ebp, eax
mov ebx, edx
jmp 0x468a24
movsd xmm0, qword [0x5140a1]
movsd qword [ecx + 0xf], xmm0
movups xmm0, xmmword [str.Wrote_crash_dump_file__]
movups xmmword [ecx], xmm0
add dword [eax + 0x10], 0x17
mov ecx, eax
push dword [esp + 0x74]
push dword [esp + 0x74]
call fcn.0046b680
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
sub edx, ecx
cmp edx, 1
ja 0x468a12
mov ecx, eax
push 2
push 0x5140aa
call fcn.0046b680
jmp 0x468a1b
mov word [ecx], 0xa22
add dword [eax + 0x10], 2
xor ebp, ebp
call fcn.00504d20
mov ebx, eax
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x468a34
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x7c]
cmp eax, ecx
je 0x468a49
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, dword [esp + 0x180]
lea ecx, [esp + 0x18c]
cmp eax, ecx
je 0x468a64
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
test edi, edi
je 0x468a6f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x468a7a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x460]
test byte [esp + 0x28], 1
je 0x468a94
push dword [esp + 0x30]
call sub.libc.dll_operator_delete_void_
add esp, 4
push 0x5334cc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebp
test ebp, ebp
je 0x468b58
call fcn.0046d170
mov esi, eax
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
sub ecx, eax
cmp ecx, 0x20
ja 0x468ad5
mov ecx, esi
push 0x21
push str.Could_not_write_crash_dump_file:
call fcn.0046b680
mov esi, eax
jmp 0x468af2
movups xmm0, xmmword [0x514030]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [str.Could_not_write_crash_dump_file:]
movups xmmword [eax], xmm0
mov byte [eax + 0x20], 0x20
add dword [esi + 0x10], 0x21
lea eax, [esp + 0x70]
lea ecx, [esp + 0x180]
push eax
call fcn.00504d9e
movzx eax, byte [esp + 0x180]
test al, 1
je 0x468b1f
mov edx, dword [esp + 0x188]
mov eax, dword [esp + 0x184]
jmp 0x468b28
shr eax, 1
lea edx, [esp + 0x181]
mov ecx, esi
push eax
push edx
call fcn.0046b680
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0xc], ecx
je 0x468b98
mov byte [ecx], 0xa
inc dword [eax + 0x10]
test byte [esp + 0x180], 1
je 0x468b58
push dword [esp + 0x188]
call sub.libc.dll_operator_delete_void_
add esp, 4
test edi, edi
je 0x468b76
lea esi, [esp + 0x180]
push 0x2cc
push dword [edi + 4]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x468b78
xor esi, esi
call fcn.0046d170
mov ecx, eax
mov edx, esi
call fcn.00467b50
mov eax, 1
add esp, 0x44c
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, eax
push 1
push 0x513d36
call fcn.0046b680
test byte [esp + 0x180], 1
jne 0x468b49
jmp 0x468b58