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

Disassembly:
push 0xffffffffffffffff
push 0x3a2daa0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x3a7682c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
xor ebx, ebx
lea ecx, [esp + 0x34]
mov dword [eax], ebx
call fcn.0394ec90
mov dword [esp + 0x5c], ebx
lea ecx, [esp + 0x34]
call fcn.03953a00
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x5c], 1
mov edi, dword [esp + 0x64]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.039685c0
mov ecx, dword [0x3a75168]
mov edx, dword [ecx]
add esp, 0x10
shr edx, 0xd
test al, al
jne 0x3971845
test dl, 1
je 0x3971810
mov ecx, dword [esp + 0x9c]
cmp ecx, ebx
je 0x3971810
mov eax, dword [0x3a56b80]
push eax
push str.__key_not_seen_before_
call fcn.039efdd0
mov byte [esp + 0x5c], 0
lea ecx, [esp + 0x2c]
call fcn.03961a00
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0394fcd0
xor al, al
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov esi, dword [esp + 0x14]
test dl, 1
mov edx, dword [esp + 0x9c]
je 0x3971875
cmp edx, ebx
je 0x3971875
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
call fcn.039619a0
push eax
push edi
push str.__xh_ls_ls_
push edx
call fcn.039f0800
add esp, 0x14
cmp dword [esp + 0x74], 0
mov ebx, dword [esp + 0x90]
mov ebp, dword [esp + 0x78]
jne 0x3971899
test ebp, ebp
jne 0x3971899
cmp dword [esp + 0x7c], ebp
jne 0x3971899
test ebx, ebx
je 0x39719d4
mov ecx, esi
call fcn.039684e0
push 1
push edi
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call fcn.03970a10
test al, al
jne 0x3971914
cmp dword [esp + 0x2c], 0
je 0x39718c9
dec dword [esp + 0x2c]
push 0x3a78b38
call dword [0x3a5ff24]
mov ecx, dword [0x3a75168]
mov edx, dword [ecx]
shr edx, 0xd
test dl, 1
je 0x39718f4
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x39718f4
mov eax, dword [0x3a56b80]
push eax
push str.__could_not_enumerate_keys_
call fcn.039efdd0
mov ecx, dword [esp + 0x98]
mov dword [ecx], 0x3fa
mov byte [esp + 0x5c], 0
lea ecx, [esp + 0x2c]
call fcn.03961a00
jmp 0x3971eaa
test ebx, ebx
je 0x3971923
mov edx, dword [esi + 0x30]
mov dword [ebx], edx
mov eax, dword [esi + 0x34]
mov dword [ebx + 4], eax
mov ebx, dword [esi + 0x28]
sub ebx, dword [esi + 0x24]
sar ebx, 2
test ebp, ebp
je 0x3971937
mov dword [ebp], 0
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x3971945
mov dword [eax], 0
mov eax, dword [esp + 0x74]
test eax, eax
je 0x397194f
mov dword [eax], ebx
test ebp, ebp
je 0x3971988
xor edi, edi
test ebx, ebx
jle 0x3971988
lea esp, [esp]
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x24]
sar ecx, 2
cmp edi, ecx
jb 0x3971972
call fcn.03a01b13
mov edx, dword [esi + 0x24]
mov eax, dword [edx + edi*4]
mov eax, dword [eax + 4]
cmp eax, dword [ebp]
jle 0x3971983
mov dword [ebp], eax
inc edi
cmp edi, ebx
jl 0x3971960
cmp dword [esp + 0x7c], 0
je 0x39719d4
xor edi, edi
test ebx, ebx
jle 0x39719d4
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x24]
sar ecx, 2
cmp edi, ecx
jb 0x39719a7
call fcn.03a01b13
mov edx, dword [esi + 0x28]
sub edx, dword [esi + 0x24]
sar edx, 2
cmp edi, edx
jb 0x39719b9
call fcn.03a01b13
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + edi*4]
mov eax, dword [ecx + 0xa8]
mov ecx, dword [esp + 0x7c]
cmp eax, dword [ecx]
jle 0x39719cf
mov dword [ecx], eax
inc edi
cmp edi, ebx
jl 0x3971995
mov edi, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
test edi, edi
jne 0x39719f7
test ebx, ebx
jne 0x39719f7
cmp dword [esp + 0x88], ebx
je 0x3971b35
mov edx, dword [esp + 0x64]
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call fcn.039711a0
test al, al
jne 0x3971a55
cmp dword [esp + 0x2c], 0
je 0x3971a22
dec dword [esp + 0x2c]
push 0x3a78b38
call dword [0x3a5ff24]
mov ecx, dword [0x3a75168]
mov edx, dword [ecx]
shr edx, 0xd
test dl, 1
je 0x39718f4
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x39718f4
mov eax, dword [0x3a56b80]
push eax
push str.__could_not_enumerate_values_
jmp 0x39718ef
cmp dword [esi + 0x40], 0
jne 0x3971a5f
xor ebp, ebp
jmp 0x3971a68
mov ebp, dword [esi + 0x58]
sub ebp, dword [esi + 0x54]
sar ebp, 2
test edi, edi
je 0x3971a6e
mov dword [edi], ebp
test ebx, ebx
je 0x3971a78
mov dword [ebx], 0
mov eax, dword [esp + 0x88]
test eax, eax
je 0x3971a89
mov dword [eax], 0
test ebx, ebx
je 0x3971ad7
xor edi, edi
test ebp, ebp
jle 0x3971ad7
cmp dword [esi + 0x40], 0
je 0x3971ac0
mov eax, dword [esi + 0x58]
sub eax, dword [esi + 0x54]
sar eax, 2
cmp edi, eax
jae 0x3971ac0
mov edx, dword [esi + 0x58]
sub edx, dword [esi + 0x54]
sar edx, 2
cmp edi, edx
jb 0x3971ab8
call fcn.03a01b13
mov eax, dword [esi + 0x54]
mov eax, dword [eax + edi*4]
jmp 0x3971ac2
xor eax, eax
mov eax, dword [eax + 4]
cmp eax, dword [ebx]
jle 0x3971acb
mov dword [ebx], eax
inc edi
cmp edi, ebp
jl 0x3971a93
mov eax, dword [esp + 0x88]
test eax, eax
je 0x3971b35
xor edi, edi
test ebp, ebp
jle 0x3971b35
mov edx, dword [esp + 0x88]
cmp dword [esi + 0x40], 0
je 0x3971b1c
mov eax, dword [esi + 0x58]
sub eax, dword [esi + 0x54]
sar eax, 2
cmp edi, eax
jae 0x3971b1c
mov ecx, dword [esi + 0x58]
sub ecx, dword [esi + 0x54]
sar ecx, 2
cmp edi, ecx
jb 0x3971b14
call fcn.03a01b13
mov edx, dword [esp + 0x88]
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + edi*4]
jmp 0x3971b1e
xor ecx, ecx
mov eax, dword [ecx + 0xb8]
sub eax, dword [ecx + 0xb4]
cmp eax, dword [edx]
jle 0x3971b30
mov dword [edx], eax
inc edi
cmp edi, ebp
jl 0x3971ae8
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x3971b6d
cmp dword [esp + 0x6c], eax
jne 0x3971b73
cmp dword [esp + 0x68], eax
jne 0x3971b73
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x3971e6d
dec edi
push 0x3a78b38
mov dword [esp + 0x30], edi
call dword [0x3a5ff24]
jmp 0x3971e6d
mov dword [eax], 0
mov edi, dword [esi + 8]
mov ebp, dword [esi + 0xc]
xor ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
cmp edi, 0x80000000
jne 0x3971c1a
mov ecx, dword [esi + 0x38]
shr ecx, 2
and ecx, 1
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
lea esi, [esp + 0x30]
lea edi, [esp + 0x38]
call fcn.0396b0d0
mov eax, dword [esp + 0x70]
mov ecx, edi
push ecx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.039685c0
add esp, 0x1c
test al, al
jne 0x3971c0a
mov edx, dword [0x3a75168]
mov eax, dword [edx]
shr eax, 0xd
test al, 1
je 0x3971c01
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x3971c01
mov edx, dword [0x3a56b80]
push edx
push str.__key_not_seen_before_
call fcn.039efdd0
mov byte [esp + 0x5c], bl
jmp 0x3971815
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
xor eax, eax
push ebp
push edi
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x4c]
push eax
call fcn.03964520
add esp, 0x1c
mov dword [esp + 0x20], eax
test eax, eax
jne 0x3971cb2
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.0394edf0
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x94]
push edx
mov edx, dword [esp + 0x70]
push ecx
push eax
mov eax, dword [esp + 0x74]
push edx
push eax
lea ecx, [esp + 0x48]
push 0
push ecx
call fcn.03963750
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0xb4]
add esp, 0x1c
mov dword [edx], eax
test edi, edi
je 0x3971e6d
dec edi
push 0x3a78b38
mov dword [esp + 0x30], edi
call dword [0x3a5ff24]
jmp 0x3971e6d
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebp
push edi
lea edx, [esp + 0x48]
push 1
push edx
call fcn.03964520
add esp, 0x1c
test eax, eax
jne 0x3971d36
mov eax, dword [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x3c]
call fcn.0394edf0
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x94]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push eax
mov eax, dword [esp + 0x78]
push eax
push ecx
lea edx, [esp + 0x48]
push 1
push edx
call fcn.03963750
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0xb4]
add esp, 0x1c
mov dword [ecx], eax
test edi, edi
je 0x3971e6d
dec edi
push 0x3a78b38
mov dword [esp + 0x30], edi
call dword [0x3a5ff24]
jmp 0x3971e6d
mov ecx, dword [esp + 0x20]
cmp ecx, 2
je 0x3971d51
cmp eax, 2
je 0x3971d51
lea ecx, [esp + 0x34]
call fcn.03961be0
mov ebp, eax
jmp 0x3971d99
mov edx, dword [esp + 0x28]
cmp edx, dword [esp + 0x24]
jl 0x3971d77
cmp ecx, 2
jne 0x3971d77
mov eax, dword [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.0394edf0
mov ebp, dword [eax]
and ebp, 7
jmp 0x3971d99
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x3971d92
push 1
push eax
lea ecx, [esp + 0x3c]
call fcn.0394edf0
mov ebp, dword [eax]
and ebp, 7
jmp 0x3971d99
mov ebp, dword [esp + 0x98]
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x3971db1
dec edi
push 0x3a78b38
mov dword [esp + 0x30], edi
call dword [0x3a5ff24]
test byte [esi + 0x38], 4
je 0x3971e5f
cmp ebp, 3
je 0x3971e5f
cmp ebp, 4
je 0x3971e5f
cmp dword [esi], 1
je 0x3971e5f
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x70]
push 0
push 0
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x88]
push ecx
push edx
push eax
call dword [0x3a600c4]
mov ecx, dword [esp + 0x98]
mov dword [ecx], eax
test eax, eax
je 0x3971e6d
mov edx, dword [0x3a75168]
mov eax, dword [edx]
shr eax, 0xd
test al, 1
je 0x3971901
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x3971901
mov edx, dword [0x3a56b80]
push edx
push str.__Unable_to_read_class_of_registry_key_
call fcn.039efdd0
mov byte [esp + 0x5c], 0
lea ecx, [esp + 0x2c]
call fcn.03961a00
jmp 0x3971eaa
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x3971e6d
mov dword [eax], 0
mov byte [esp + 0x5c], 0
test edi, edi
je 0x3971e8c
mov esi, dword [0x3a5ff24]
dec edi
push 0x3a78b38
mov dword [esp + 0x30], edi
call esi
test edi, edi
jne 0x3971e7c
mov eax, dword [esp + 0x30]
test eax, eax
je 0x3971eaa
mov esi, dword [eax + 4]
push eax
call fcn.0393d9e0
add esp, 4
mov eax, esi
mov dword [esp + 0x30], eax
test esi, esi
jne 0x3971e94
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0394fcd0
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret