Function at 0x413100
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c7c7
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x70], ebx
mov eax, dword [ebp + 8]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x9c], ebx
mov dword [ebx + 8], eax
mov dword [ebp - 4], 0
mov eax, dword [0x47b9e4]
fild dword [0x47b9e0]
cdq
sub eax, edx
mov dword [ebx], 0x46f520
mov edi, eax
mov dword [ebx + 0xc], 0x30
sar edi, 1
mov dword [ebx + 0x10], 0x26
mov dword [ebx + 0x14], 0x26
mov dword [ebx + 0x18], 0x114
lea eax, [edi - 0x8a]
mov dword [ebx + 0x1c], 0x5b
mov dword [ebx + 0x20], eax
lea eax, [edi - 0x70]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x24], 0x40
mov dword [ebx + 0x28], 0xe0
mov dword [ebx + 0x2c], 0x30
mov dword [ebx + 0x30], 0x168
mov dword [ebx + 0x34], 0x20
fstp qword [ebp - 0x7c]
fld qword [ebp - 0x7c]
fld qword [0x470070]
mov esi, dword [0x47b9e0]
fnstcw word [ebp - 0x46]
movzx eax, word [ebp - 0x46]
or eax, 0xc00
mov dword [ebx + 0x4c], 0x26
mov dword [ebp - 0x4c], eax
mov eax, esi
cdq
sub eax, edx
mov dword [ebx + 0x54], 0x140
sar eax, 1
mov dword [ebx + 0x58], 0x14
mov dword [ebx + 0x64], 0x140
mov dword [ebx + 0x68], 0x14
fmul st(1)
fldcw word [ebp - 0x4c]
fistp qword [ebp - 0x7c]
mov ecx, dword [ebp - 0x7c]
fldcw word [ebp - 0x46]
lea edx, [ecx - 0x10]
add edx, eax
lea eax, [edi - 0xb4]
mov dword [ebx + 0x40], eax
mov ecx, edx
mov dword [ebx + 0x3c], edx
fmul qword [0x470078]
fnstcw word [ebp - 0x46]
movzx eax, word [ebp - 0x46]
or eax, 0xc00
mov dword [ebp - 0x4c], eax
fldcw word [ebp - 0x4c]
fistp qword [ebp - 0x7c]
mov eax, dword [ebp - 0x7c]
sub ecx, eax
lea eax, [edx + 0x48]
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], eax
lea edx, [esi - 0x30]
mov eax, dword [0x47b9e4]
lea ecx, [edx - 0x18]
fldcw word [ebp - 0x46]
add eax, 0xfffffe9a
mov dword [ebx + 0x50], edx
mov dword [ebx + 0x6c], eax
lea eax, [edx - 0x30]
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x78], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x80], edi
lea edi, [ebx + 0xe4]
mov dword [ebx + 0x7c], edx
mov dword [ebx + 0x84], edx
mov dword [ebx + 0x90], eax
mov dword [ebp - 0x6c], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00416780
mov dword [edi], eax
fld dword [ebp + 0x18]
mov ecx, ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
fstp dword [ebx + 0x8c]
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
mov byte [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
call fcn.00416110
mov ecx, ebx
call fcn.00414310
mov ebx, 0x46c558
mov dword [ebp - 0x48], 0x71
mov edx, dword [edi]
mov esi, edx
mov ecx, dword [ebx]
mov dword [ebp - 0x4c], ecx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x413342
cmp dword [eax + 0x10], ecx
jae 0x41332f
mov eax, dword [eax + 8]
jmp 0x413333
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x413325
cmp esi, edx
je 0x413342
cmp ecx, dword [esi + 0x10]
jae 0x413369
lea eax, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
push ecx
mov ecx, edi
call fcn.00416810
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x60]
push eax
call fcn.00416840
mov esi, dword [ebp - 0x60]
mov eax, dword [ebx + 0xc]
add ebx, 0x10
and eax, 1
shl eax, 2
sub dword [ebp - 0x48], 1
mov dword [esi + 0x14], eax
jne 0x413313
mov dword [ebp - 0x18], 7
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 3
xor esi, esi
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x48]
push eax
push 0x20019
push esi
push 0x46f558
push 0x80000002
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413522
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
call fcn.00417db0
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x5c]
push eax
call fcn.00416e90
add esp, 4
test al, al
je 0x41342d
cmp dword [ebp - 0x58], esi
je 0x413428
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x88]
push dword [ebp - 0x9c]
push eax
push dword [eax]
call fcn.00417f40
mov eax, dword [ebp - 0x80]
lea esi, [ebx + 1]
mov ebx, dword [ebp - 0x88]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x54], ebx
jmp 0x41342d
mov esi, 2
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x5c]
push eax
push dword [eax]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417860
push 0x14
push dword [ebp - 0x5c]
call fcn.004220bd
add esp, 8
cmp esi, 1
jne 0x413550
mov eax, dword [ebp - 0x84]
xor esi, esi
sub eax, ebx
mov dword [ebp - 0x50], esi
add eax, 3
shr eax, 2
cmp dword [ebp - 0x84], ebx
sbb ecx, ecx
not ecx
and ecx, eax
mov eax, ebx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x48], eax
je 0x413550
mov ebx, dword [eax]
mov ecx, edi
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
push eax
call fcn.00416630
test eax, eax
je 0x41350a
mov ecx, dword [edi]
mov esi, ecx
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x4134d0
cmp dword [eax + 0x10], ebx
jae 0x4134bd
mov eax, dword [eax + 8]
jmp 0x4134c1
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4134b3
cmp esi, ecx
je 0x4134d0
cmp ebx, dword [esi + 0x10]
jae 0x413503
lea eax, [ebp - 0x68]
push ecx
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x8c]
push eax
push ecx
mov ecx, edi
call fcn.00416810
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x90]
push eax
call fcn.00416840
mov esi, dword [ebp - 0x90]
or dword [esi + 0x14], 1
mov esi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
inc esi
add eax, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], eax
cmp esi, dword [ebp - 0x60]
jne 0x413492
jmp 0x413550
cmp eax, 2
je 0x413550
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x44]
push str.RegOpenKeyEx_failed_with__i
push eax
call fcn.00411e60
add esp, 0xc
lea ecx, [ebp - 0x2c]
push eax
call fcn.00403810
lea ecx, [ebp - 0x44]
call fcn.00401520
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x413665
mov edx, dword [edi]
mov esi, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x413585
cmp dword [eax + 0x10], ecx
jae 0x413572
mov eax, dword [eax + 8]
jmp 0x413576
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x413568
cmp esi, edx
je 0x413585
cmp ecx, dword [esi + 0x10]
jae 0x4135b2
lea eax, [ebp + 0x14]
push ecx
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x94]
push eax
push ecx
mov ecx, edi
call fcn.00416810
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.00416840
mov esi, dword [ebp - 0x64]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 5
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov esi, ebx
cmp byte [ebx + 0xd], 0
jne 0x4135f1
lea esp, [esp]
push dword [esi + 8]
mov ecx, edi
call fcn.00416740
mov esi, dword [esi]
push 0x18
push ebx
call fcn.004220bd
add esp, 8
mov ebx, esi
cmp byte [esi + 0xd], 0
je 0x4135d0
mov eax, dword [edi]
mov dword [eax + 4], eax
mov eax, dword [edi]
mov dword [eax], eax
mov eax, dword [edi]
mov byte [ebp - 4], 3
mov dword [eax + 8], eax
mov dword [edi + 4], 0
mov edx, dword [edi]
mov esi, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x413635
mov ecx, dword [ebp + 0x14]
cmp dword [eax + 0x10], ecx
jae 0x413622
mov eax, dword [eax + 8]
jmp 0x413626
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x413618
cmp esi, edx
je 0x413635
cmp ecx, dword [esi + 0x10]
jae 0x41365c
lea eax, [ebp + 0x14]
push ecx
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push ecx
mov ecx, edi
call fcn.00416810
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.00416840
mov esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x64]
or eax, 4
mov dword [esi + 0x14], eax
mov ebx, dword [ebp - 0x98]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push dword [ebx + 0xc0]
call esi
mov edx, dword [ebx + 0x88]
test edx, edx
je 0x413712
xor eax, eax
mov ecx, 0x46c558
cmp dword [ecx], edx
je 0x4136ab
inc eax
add ecx, 0x10
cmp eax, 0x71
jb 0x413697
mov eax, 4
jmp 0x4136b3
shl eax, 4
add eax, 0x46c55c
push dword [eax]
push 0
push 0x143
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
js 0x41378b
push dword [ebx + 0x88]
push eax
push 0x151
push dword [ebx + 0xc0]
call esi
push 0
push 0
push 0x14e
push dword [ebx + 0xc0]
call esi
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebx + 0xc0]
call dword [eax + 0x18]
push 0
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x41378b
mov esi, dword [edi]
mov eax, dword [esi]
mov dword [ebp - 0x50], eax
cmp eax, esi
je 0x41378b
lea ecx, [ecx]
mov edi, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
shr eax, 2
test al, 1
je 0x41377c
xor eax, eax
mov ecx, 0x46c558
cmp dword [ecx], edi
je 0x413748
inc eax
add ecx, 0x10
cmp eax, 0x71
jb 0x413734
mov eax, 4
jmp 0x413750
shl eax, 4
add eax, 0x46c55c
push dword [eax]
push 0
push 0x143
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
js 0x41377c
push edi
push eax
push 0x151
push dword [ebx + 0xc0]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x50]
call fcn.004165d0
mov eax, dword [ebp - 0x50]
cmp eax, esi
jne 0x413720
mov ecx, ebx
call fcn.00415b70
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x4137e0
mov edx, dword [ebp - 0x4c]
mov eax, ecx
sub edx, ecx
sar edx, 2
cmp edx, 0x3fffffff
ja 0x413808
shl edx, 2
cmp edx, 0x1000
jb 0x4137d6
lea esi, [edx + 0x23]
cmp esi, edx
jbe 0x413808
mov edx, esi
test al, 0x1f
jne 0x413808
mov ecx, dword [ecx - 4]
cmp ecx, eax
jae 0x413808
sub eax, ecx
cmp eax, 4
jb 0x413808
cmp eax, 0x23
ja 0x413808
push edx
push ecx
call fcn.004220bd
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00401520
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042207c
mov esp, ebp
pop ebp
ret 0x14
call fcn.0043c2f4
int3