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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov eax, dword [edx + 8]
mov dword [esp + 0x38], eax
sub eax, 1
jb 0x426d88
mov edx, dword [edx + 4]
mov ecx, dword [ecx]
lea edi, [eax + eax*2]
lea esi, [esp + 0x18]
mov dword [esp + 4], ecx
mov eax, dword [edx + edi*4 + 4]
mov ecx, dword [edx + edi*4 + 8]
mov dword [esp + 0x34], edx
mov edx, esi
add ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
lea ecx, [esp + 8]
mov word [esp + 0x24], 0
mov dword [esp + 0x18], 1
call fcn.00422e40
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x18], 0
push esi
push 0x20019
push 0
push ebx
push dword [esp + 0x14]
call sub.advapi32.dll_RegOpenKeyExW
mov ecx, dword [esp + 0x18]
cmp dword [esp + 8], 0
mov esi, eax
je 0x42672d
push ebx
push 0
push dword [0x5a1188]
mov ebx, ecx
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, ebx
mov edx, dword [ebp + 8]
test esi, esi
je 0x42676e
mov edi, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], esi
lea esi, [esp + 0x18]
mov ecx, esi
push dword [esp + 0x38]
call fcn.00409be0
add esp, 4
lea eax, [esp + 0x74]
mov ecx, edi
mov edx, esi
push eax
call fcn.00428170
add esp, 4
jmp 0x426d80
mov eax, dword [esp + 0x34]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 8]
lea eax, [eax + edi*4]
mov edi, edx
push 8
push dword [eax + 8]
push dword [eax + 4]
call fcn.00427090
add esp, 0xc
cmp byte [esp + 8], 4
jne 0x426a7d
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x44]
mov dword [edi + 0x14], 0
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], 0
mov ecx, dword [eax + 0x20]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], eax
jmp 0x4267f1
push esi
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
push dword [esp + 0x40]
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x84]
call fcn.005292a0
mov edx, dword [esp + 0x18]
cmp edx, 0x80000001
je 0x426b08
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp edx, 0x80000000
jne 0x426850
cmp cl, 3
jne 0x4267f1
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov dword [esp + 0x40], eax
push esi
call dword [edi]
add esp, 4
cmp dword [edi + 4], 0
je 0x4267df
cmp dword [edi + 8], 9
jb 0x4267d0
mov esi, dword [esi - 4]
jmp 0x4267d0
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x9c], edx
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x9c]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x18], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x60], esi
mov esi, dword [esp + 4]
mov dword [esp + 4], ecx
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], esi
push eax
push dword [esp + 0x3c]
call fcn.00425410
add esp, 8
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
lea ecx, [esp + 8]
mov dword [esp + 0x3c], edx
push edi
call fcn.00409be0
add esp, 4
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push dword [esp + 0x10]
push esi
call fcn.0040ea60
add esp, 8
cmp ebx, dword [esp + 0x5c]
setb bl
cmp dword [esp + 8], 0
je 0x426910
push esi
push 0
push dword [0x5a1188]
mov bh, al
call dword [sym.imp.kernel32.dll_HeapFree]
mov al, bh
mov esi, dword [ebp + 8]
and bl, al
lea ecx, [esp + 0x6c]
movzx eax, bl
mov edx, esi
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x48]
push dword [esp + 0x10]
call fcn.00432420
add esp, 0x10
cmp byte [esp + 0x6c], 4
jne 0x426960
mov dword [esi + 0x14], 0
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 4]
test edi, edi
jne 0x426a06
jmp 0x426a30
mov ebx, dword [esi + 0x14]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
test ebx, ebx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x8c], eax
je 0x4269d1
lea ecx, [esp + 8]
mov edx, esi
call fcn.00407a80
movzx ecx, byte [esp + 8]
cmp cl, 4
jne 0x426d96
mov ecx, dword [esi + 0x10]
neg ebx
mov eax, 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
sbb eax, eax
push 1
lea edx, [esp + 0xc]
push edx
push eax
push ebx
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointerEx]
test eax, eax
je 0x426db7
mov dword [esi + 0x14], 0
mov edx, dword [esp + 0x3c]
lea ebx, [esp + 8]
mov ecx, ebx
push edi
call fcn.00409be0
add esp, 4
lea eax, [esp + 0x8c]
mov ecx, esi
mov edx, ebx
push eax
call fcn.00428170
add esp, 4
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 4]
test edi, edi
je 0x426a30
mov ecx, dword [esp + 0x3c]
lea ebx, [ecx + 4]
jmp 0x426a16
add ebx, 0xc
dec edi
je 0x426a30
cmp dword [ebx - 4], 0
je 0x426a10
push dword [ebx]
push 0
push dword [0x5a1188]
call esi
mov eax, dword [esp + 4]
jmp 0x426a10
cmp dword [esp + 0x48], 0
je 0x426a49
push dword [esp + 0x3c]
push 0
push dword [0x5a1188]
call esi
mov eax, dword [esp + 4]
cmp dword [esp + 0x64], 0
je 0x426a62
push dword [esp + 0x60]
push 0
push dword [0x5a1188]
call esi
mov eax, dword [esp + 4]
cmp dword [esp + 0x68], 0
je 0x4267f1
push eax
push 0
push dword [0x5a1188]
call esi
jmp 0x4267f1
mov ebx, dword [edi + 0x14]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ebx, ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x7c], eax
je 0x426ae9
lea esi, [esp + 0x18]
mov edx, edi
mov ecx, esi
call fcn.00407a80
movzx ecx, byte [esp + 0x18]
cmp cl, 4
jne 0x426de5
mov ecx, dword [edi + 0x10]
neg ebx
mov eax, 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
sbb eax, eax
push 1
push esi
push eax
push ebx
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointerEx]
test eax, eax
je 0x426e06
mov dword [edi + 0x14], 0
mov edx, dword [esp + 0x34]
lea esi, [esp + 0x18]
mov ecx, esi
push dword [esp + 0x38]
call fcn.00409be0
add esp, 4
lea eax, [esp + 0x7c]
jmp 0x426d64
lea eax, [esp + 0x44]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x4c], 0
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
jmp 0x426b49
push edi
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
lea ebx, [esp + 0x18]
mov ecx, ebx
lea edx, [esp + 0x48]
call fcn.005291a0
mov eax, dword [esp + 0x18]
cmp eax, 0x80000001
je 0x426c9e
movzx ecx, byte [esp + 0x1c]
mov esi, dword [esp + 0x20]
cmp eax, 0x80000000
jne 0x426ba0
cmp cl, 3
jne 0x426b4d
mov edi, dword [esi]
mov ebx, dword [esi + 4]
push edi
call dword [ebx]
add esp, 4
cmp dword [ebx + 4], 0
je 0x426b3a
cmp dword [ebx + 8], 9
jb 0x426b2b
mov edi, dword [edi - 4]
jmp 0x426b2b
movzx edx, byte [esp + 0x1f]
movzx edi, word [esp + 0x1d]
movzx ecx, cl
mov dword [esp + 0xa8], eax
lea eax, [esp + 0xa8]
shl edi, 8
shl edx, 0x18
or edx, edi
or edx, ecx
lea ecx, [esp + 8]
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xb0], esi
push eax
push dword [esp + 0x3c]
call fcn.00425210
add esp, 8
mov edx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, ebx
mov dword [esp + 4], edx
push edi
call fcn.00409be0
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push dword [esp + 0x20]
push esi
call fcn.0040ea60
add esp, 8
cmp dword [esp + 0x18], 0
mov ebx, eax
je 0x426c30
push esi
push 0
push dword [0x5a1188]
call dword [sym.imp.kernel32.dll_HeapFree]
test bl, bl
jne 0x426c4a
lea ecx, [esp + 0x44]
lea edx, [esp + 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426690
add esp, 8
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
test edi, edi
je 0x426c80
mov eax, dword [esp + 4]
lea ebx, [eax + 4]
jmp 0x426c66
add ebx, 0xc
dec edi
je 0x426c80
cmp dword [ebx - 4], 0
je 0x426c60
push dword [ebx]
push 0
push dword [0x5a1188]
call esi
jmp 0x426c60
cmp dword [esp + 8], 0
je 0x426b49
push dword [esp + 4]
push 0
push dword [0x5a1188]
call esi
jmp 0x426b49
mov esi, dword [ebp + 8]
mov byte [esp + 0x18], 0
lea ecx, [esp + 8]
mov edx, esi
push 1
push ebx
call fcn.00426f60
add esp, 8
cmp byte [esp + 8], 4
jne 0x426cd6
mov dword [esi + 0x14], 0
mov eax, dword [esp + 0x44]
test eax, eax
jns 0x426d79
jmp 0x426d80
mov ebx, dword [esi + 0x14]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edi, esi
test ebx, ebx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x94], eax
je 0x426d47
lea esi, [esp + 0x18]
mov edx, edi
mov ecx, esi
call fcn.00407a80
movzx ecx, byte [esp + 0x18]
cmp cl, 4
jne 0x426de5
mov ecx, dword [edi + 0x10]
neg ebx
mov eax, 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
sbb eax, eax
push 1
push esi
push eax
push ebx
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointerEx]
test eax, eax
je 0x426e06
mov dword [edi + 0x14], 0
mov edx, dword [esp + 0x34]
lea esi, [esp + 0x18]
mov ecx, esi
push dword [esp + 0x38]
call fcn.00409be0
add esp, 4
lea eax, [esp + 0x94]
mov ecx, edi
mov edx, esi
push eax
call fcn.00428170
add esp, 4
mov eax, dword [esp + 0x44]
test eax, eax
js 0x426d80
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, eax
xor edx, edx
push 0x53b7c0
call fcn.00532ca0
movzx edx, byte [esp + 0xf]
movzx eax, word [esp + 0xd]
mov esi, dword [esp + 9]
movzx ecx, cl
shl edx, 0x10
or eax, edx
shld eax, esi, 8
shl esi, 8
or ecx, esi
jmp 0x426dbf
call dword [sym.imp.kernel32.dll_GetLastError]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x53b8c8
push 0x539ed0
lea eax, [esp + 0x10]
push eax
call fcn.00533020
movzx edx, byte [esp + 0x1f]
movzx eax, word [esp + 0x1d]
mov ebx, dword [esp + 0x19]
movzx edi, cl
shl edx, 0x10
or eax, edx
shld eax, ebx, 8
shl ebx, 8
or edi, ebx
jmp 0x426e0e
xor edi, edi
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
push 0x53b8c8
push 0x539ed0
push esi
call fcn.00533020