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

Disassembly:
sub esp, 0x30
mov dword [esp], 0
push ebx
push esi
push edi
push ebp
cmp dword [ecx + 0x10], 0
mov edi, ecx
je 0x41680e
mov dword [edi + 0x30], 1
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x416850
mov eax, dword [ecx + 0x50]
mov esi, dword [esp + 0x4c]
test eax, eax
je 0x416854
mov edx, dword [esp + 0x48]
push esi
mov ebx, dword [esp + 0x48]
push edx
push eax
push ecx
push ebx
mov ecx, edi
call fcn.00416110
mov dword [esp + 0x10], eax
test eax, eax
jne 0x416d34
mov dword [edi + 0x68], 2
mov dword [edi + 0x6c], 0
jmp 0x416858
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x44]
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x416868
call fcn.0040b530
test eax, eax
jne 0x41687f
cmp dword [edi + 4], 0
jne 0x41688b
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x41688b
call fcn.0040d770
cmp eax, 1
je 0x41688b
mov dword [edi + 0xa0], 0
jmp 0x416895
mov dword [edi + 0xa0], 1
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x28]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x2c]
mov ebp, dword [edi + 0x30]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], edx
mov ecx, dword [edi + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], ebp
test ecx, ecx
je 0x4168e9
call fcn.0040d770
cmp eax, 1
je 0x4168e9
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
cmp dword [esp + 0x18], 4
jne 0x416924
cmp dword [esp + 0x1c], 0
je 0x416924
cmp dword [esp + 0x20], 0
je 0x416924
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0040bdf0
test eax, eax
jne 0x416d30
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + eax + 0x1c]
test ebp, ebp
je 0x416d1c
mov ecx, ebp
call fcn.0040b530
test eax, eax
je 0x416966
lea eax, [esp + 0x38]
mov ecx, ebp
mov dword [esp + 0x38], 0x7fffffff
push eax
call fcn.0040b4f0
test eax, eax
je 0x416966
mov dword [edi + 0xa0], 0
jmp 0x416d1c
lea eax, [esp + 0x3c]
mov ecx, ebp
mov dword [esp + 0x3c], 0x7fffffff
push eax
call fcn.0040b4f0
test eax, eax
je 0x4169a6
mov dword [edi + 0xa0], 1
mov eax, dword [ebp + 0x78]
mov dword [edi + 0xa4], eax
mov ecx, dword [ebp + 0x7c]
mov dword [edi + 0xac], ecx
mov edx, dword [ebp + 0x80]
mov dword [edi + 0xa8], edx
cmp dword [ebp + 0x54], 0
je 0x416a3c
push ebx
mov ecx, ebp
call fcn.0040cf90
cmp eax, 0xfffffffc
jne 0x4169c9
mov dword [edi + 0x98], 1
jmp 0x416a35
cmp eax, dword [0x461318]
jne 0x4169dd
mov dword [edi + 0x98], 0xd
jmp 0x416a35
cmp eax, dword [0x461258]
jne 0x4169f1
mov dword [edi + 0x98], 0xe
jmp 0x416a35
cmp eax, dword [0x461304]
jne 0x416a05
mov dword [edi + 0x98], 0xf
jmp 0x416a35
mov edx, dword [esp + 0x48]
push esi
push edx
mov eax, dword [ebp + 0x54]
push eax
mov ecx, edi
push ebp
push ebx
call fcn.00416110
mov dword [esp + 0x10], eax
test eax, eax
jne 0x416d3e
mov dword [edi + 0x98], 5
mov dword [edi + 0x78], 0
mov dword [edi + 0x64], 2
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x416a91
push 0x31
call fcn.00408220
test eax, eax
je 0x416a5a
mov dword [edi + 0x9c], 1
jmp 0x416a91
mov edx, dword [esp + 0x48]
push esi
push edx
mov eax, dword [ebp + 0x58]
push eax
mov ecx, edi
push ebp
push ebx
call fcn.00416110
mov dword [esp + 0x10], eax
test eax, eax
jne 0x416d67
mov dword [edi + 0x9c], 5
mov dword [edi + 0x78], 0
mov dword [edi + 0x64], 2
cmp dword [ebp + 0x5c], 0
je 0x416b35
push ebx
mov ecx, ebp
call fcn.0040cfb0
mov dword [esp + 0x28], eax
cmp eax, 0xfffffffc
jne 0x416ab8
mov dword [edi + 0x8c], 1
jmp 0x416b23
cmp dword [esp + 0x28], 0xfffffffb
jne 0x416acb
mov dword [edi + 0x8c], 0
jmp 0x416b23
push ebx
mov ecx, ebp
call fcn.0040c1a0
test eax, eax
je 0x416ae3
mov dword [edi + 0x8c], 0x11
jmp 0x416b05
mov eax, dword [esp + 0x28]
cmp eax, dword [0x46130c]
jne 0x416afb
mov dword [edi + 0x8c], 0x10
jmp 0x416b23
mov dword [edi + 0x8c], 4
mov edx, dword [esp + 0x48]
push esi
push edx
mov eax, dword [ebp + 0x5c]
push eax
mov ecx, edi
push ebp
push ebx
call fcn.00416110
mov dword [edi + 0x74], 0
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x416d90
mov dword [edi + 0x64], 2
mov ecx, ebp
call fcn.0040c0c0
test eax, eax
je 0x416b91
push 0x30
mov ecx, dword [ebp + 0x60]
call fcn.00408220
test eax, eax
je 0x416b5a
mov dword [edi + 0x90], 0
jmp 0x416b91
mov edx, dword [esp + 0x48]
push esi
push edx
mov eax, dword [ebp + 0x60]
push eax
mov ecx, edi
push ebp
push ebx
call fcn.00416110
mov dword [esp + 0x10], eax
test eax, eax
jne 0x416db9
mov dword [edi + 0x90], 6
mov dword [edi + 0x7c], 0
mov dword [edi + 0x64], 2
cmp dword [ebp + 0x64], 0
je 0x416c74
push ebx
mov ecx, ebp
call fcn.0040cfa0
cmp eax, 0xfffffffc
jne 0x416bb7
mov dword [edi + 0xa0], 1
jmp 0x416c74
cmp eax, 0xfffffffb
jne 0x416bcb
mov dword [edi + 0xa0], 0
jmp 0x416c74
test eax, eax
jne 0x416bde
mov dword [edi + 0xa0], 7
jmp 0x416c74
cmp eax, 1
jne 0x416bf2
mov dword [edi + 0xa0], 8
jmp 0x416c74
cmp eax, 2
jne 0x416c03
mov dword [edi + 0xa0], 9
jmp 0x416c74
cmp eax, 3
jne 0x416c14
mov dword [edi + 0xa0], 0xa
jmp 0x416c74
cmp eax, 4
jne 0x416c25
mov dword [edi + 0xa0], 0xb
jmp 0x416c74
cmp eax, 5
jne 0x416c36
mov dword [edi + 0xa0], 0xc
jmp 0x416c74
mov ecx, ebp
call fcn.0040d810
test eax, eax
jne 0x416c58
mov edx, dword [esp + 0x48]
push esi
push edx
mov eax, dword [ebp + 0x64]
push eax
mov ecx, edi
push ebp
push ebx
call fcn.00416110
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x416de2
mov dword [edi + 0xa0], 6
mov dword [edi + 0x7c], 0
cmp dword [ebp + 0x68], 0
jne 0x416ce4
cmp dword [ebp + 0x6c], 0
jne 0x416ce4
mov ecx, dword [ebp + 0x50]
test ecx, ecx
je 0x416cf7
push 0x2d
call fcn.00408220
cmp eax, 1
jne 0x416cb9
mov ecx, ebp
call fcn.0040b4a0
test eax, eax
je 0x416cf7
mov eax, dword [esp + 0x18]
mov eax, dword [esp + eax + 0x2c]
cmp eax, 0xb
je 0x416cb0
cmp eax, 0x22
jne 0x416cf7
mov dword [edi + 0x4c], 2
jmp 0x416cf7
cmp dword [edi + 8], ebp
jne 0x416cc4
cmp dword [edi + 0x2c], 0x2a
je 0x416cf7
cmp dword [edi + 4], ebp
jne 0x416ccf
cmp dword [edi + 0x28], 0x2a
je 0x416cf7
mov edx, dword [esp + 0x48]
push esi
push edx
mov eax, dword [ebp + 0x50]
push eax
mov ecx, edi
push ebp
push ebx
call fcn.00416110
jmp 0x416cf3
mov edx, dword [esp + 0x48]
push esi
push edx
mov ecx, edi
push ebp
push ebx
call fcn.00416310
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x416e0b
cmp dword [ebp + 0x2c], 4
jne 0x416d1c
mov dword [edi + 0x9c], 1
mov dword [edi + 0x98], 1
add dword [esp + 0x18], 4
inc dword [esp + 0x14]
cmp dword [esp + 0x18], 0xc
jl 0x4168f9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x30
ret 0xc
mov eax, dword [esp + 0x14]
mov eax, dword [esp + eax*4 + 0x1c]
add eax, 8
push eax
push str._ERROR___s:_fail_to_assign_Clock_product_term_n
push 8
call fcn.0043dfe0
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x30
ret 0xc
mov eax, dword [esp + 0x14]
mov eax, dword [esp + eax*4 + 0x1c]
add eax, 8
push eax
push str._ERROR___s:_fail_to_assign_Clock_Enable_product_term_n
push 8
call fcn.0043dfe0
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x30
ret 0xc
mov eax, dword [esp + 0x14]
mov eax, dword [esp + eax*4 + 0x1c]
add eax, 8
push eax
push str._ERROR___s:_fail_to_assign_Reset_product_term_n
push 8
call fcn.0043dfe0
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x30
ret 0xc
mov eax, dword [esp + 0x14]
mov eax, dword [esp + eax*4 + 0x1c]
add eax, 8
push eax
push str._ERROR___s:_fail_to_assign_Preset_product_term_n
push 8
call fcn.0043dfe0
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x30
ret 0xc
mov eax, dword [esp + 0x14]
mov eax, dword [esp + eax*4 + 0x1c]
add eax, 8
push eax
push str._ERROR___s:_fail_to_assign_Output_Enable_product_term_n
push 8
call fcn.0043dfe0
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x30
ret 0xc
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x30
ret 0xc