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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff4a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push edi
push 0x88
call fcn.00445790
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
je 0x45135d
mov dword [edi], vtable.KeycontSettings.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0xf
mov byte [edi + 0x34], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0xf
push ebx
mov byte [edi + 0x4c], 0
xor ebx, ebx
push esi
mov dword [edi + 0x74], 0
xor esi, esi
mov dword [edi + 0x78], 0xf
mov byte [edi + 0x64], 0
mov byte [edi + 0x7c], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], esi
call fcn.004478c0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4512dd
lea eax, [ebp - 0x28]
push eax
push esi
push esi
call fcn.00450750
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 3
mov eax, dword [ecx]
call dword [eax + 0x34]
test eax, eax
je 0x4512da
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov ecx, eax
push esi
mov edx, dword [eax]
call dword [edx + 0x3c]
mov edi, eax
test edi, edi
je 0x451296
push 0xa
push str.KEYCONTID.
push edi
call fcn.004e3510
add esp, 0xc
test eax, eax
jne 0x451296
add edi, 0xa
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x40], al
mov eax, edi
mov dword [ebp - 0x2c], 0xf
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451260
sub eax, edx
lea ecx, [ebp - 0x40]
push eax
push edi
call fcn.004047b0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00450810
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00403970
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x451299
mov eax, dword [ebp - 0x10]
inc esi
cmp esi, ebx
jb 0x451226
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
test eax, eax
jne 0x4512d5
mov eax, esi
sub eax, ebx
sub eax, 0x18
cmp eax, 0x18
jae 0x4512d5
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x4512be
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
push 0
push ecx
push eax
mov ecx, edi
call fcn.00451370
test eax, eax
jne 0x4512dd
jmp 0x4512e6
mov edi, dword [ebp - 0x18]
jmp 0x4512dd
mov esi, dword [ebp - 0x24]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xor edi, edi
test ebx, ebx
je 0x451345
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call fcn.00450750
mov ecx, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
ja 0x451358
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x45133c
test bl, 0x1f
jne 0x451358
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x451358
sub ebx, eax
cmp ebx, 4
jb 0x451358
cmp ebx, 0x23
ja 0x451358
mov ebx, eax
push ebx
call fcn.004457a0
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004d588f
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret