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

Disassembly:
sub esp, 0xa4
mov eax, dword [0x43c730]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
push ebp
mov ebp, dword [esp + 0xac]
push esi
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp ebp, esi
je 0x40c7f5
cmp eax, esi
je 0x40c7f5
cmp ecx, esi
je 0x40c7f5
push ebx
mov ebx, dword [esp + 0xb8]
test bl, bl
jne 0x40c7f4
push edi
mov dword [eax], esi
push 0x3f
lea eax, [esp + 0x75]
push esi
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [ecx], esi
mov byte [esp + 0x7c], bl
call fcn.00422290
add esp, 0xc
test ebx, 0xff0000
je 0x40c761
push str.nvcpl.dll
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, esi
jne 0x40c596
push str.nvcpl.dll
call fcn.00404550
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 1
cmp ebx, esi
je 0x40c7f3
push str.dtcfgex
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x2c], eax
cmp eax, esi
jne 0x40c5c1
cmp dword [esp + 0x14], 1
jne 0x40c7f3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40c7f3
mov edi, dword [ebp + 0x1294c]
mov edx, dword [ebp + 0x12964]
xor eax, eax
cmp edi, esi
mov dword [esp + 0x10], 0xffffffff
jle 0x40c64f
lea esi, [ebp + 0x12954]
mov ecx, dword [esi]
test ecx, ecx
je 0x40c5f6
mov ebx, dword [esp + 0xbc]
cmp ebx, dword [ecx]
je 0x40c600
mov ebx, dword [esp + 0x18]
inc eax
add esi, 0x78
cmp eax, edi
jl 0x40c5e1
jmp 0x40c64f
cmp dword [ebp + 0x1295c], 1
jne 0x40c617
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov edx, dword [ebp + ecx*8 + 0x12964]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp + ecx*8 + 0x12954]
add eax, 4
push eax
push edx
push str.getdvihdformat__d__s
lea ecx, [esp + 0x7c]
push 0x40
push ecx
call fcn.00422525
add esp, 0x14
lea edx, [esp + 0x70]
push edx
call dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], 1
jne 0x40c65d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp dword [esp + 0x10], esi
jne 0x40c761
lea eax, [esp + 0x70]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c670
sub eax, edx
push 0x3c
lea esi, [esp + eax + 0x73]
lea eax, [esp + 0x38]
push 0
push eax
mov dword [esp + 0x3c], 0
call fcn.00422290
lea ecx, [esp + 0x7c]
add esp, 0xc
xor edi, edi
cmp esi, ecx
jb 0x40c7f3
lea ebp, [esi + 2]
lea edx, [esp + 0x70]
cmp esi, edx
jne 0x40c6c1
push esi
call fcn.00422e0b
mov dword [esp + edi*4 + 0x34], eax
add esp, 4
inc edi
dec esi
dec ebp
jmp 0x40c6e9
mov al, byte [esi]
dec esi
dec ebp
cmp al, 0x20
jne 0x40c6e9
push ebp
call fcn.00422e0b
add esp, 4
cmp eax, 0xe
je 0x40c6e5
push ebp
call fcn.00422e0b
add esp, 4
mov dword [esp + edi*4 + 0x30], eax
inc edi
mov byte [esi + 1], 0
lea ecx, [esp + 0x70]
cmp esi, ecx
jae 0x40c6a7
test edi, edi
je 0x40c7f3
lea esi, [edi*8]
push esi
call fcn.00422359
push esi
mov ebp, eax
push 0
push ebp
call fcn.00422290
add esp, 0x10
test ebp, ebp
je 0x40c7f3
mov eax, dword [0x43ba70]
xor edx, edx
test eax, eax
jle 0x40c756
mov esi, 0x43b9cc
mov ebx, eax
mov edi, edi
xor eax, eax
test edi, edi
jle 0x40c74e
mov ecx, dword [esi]
cmp dword [esp + eax*4 + 0x30], ecx
je 0x40c745
inc eax
cmp eax, edi
jl 0x40c738
jmp 0x40c74e
mov eax, dword [esp + eax*4 + 0x30]
mov dword [ebp + edx*8], eax
inc edx
add esi, 0x18
sub ebx, 1
jne 0x40c730
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebp
jmp 0x40c7ed
mov ecx, dword [ebp + 0x60c]
mov edx, dword [0x43ba70]
xor edi, edi
xor eax, eax
cmp ecx, esi
mov dword [esp + 0x10], 0x43b9c8
jle 0x40c7be
lea esi, [ebp + 0x614]
mov ebx, dword [esp + 0xbc]
cmp ebx, dword [esi]
je 0x40c79b
inc eax
add esi, 0x2a4
cmp eax, ecx
jl 0x40c783
jmp 0x40c7be
imul eax, eax, 0x2a4
cmp dword [eax + ebp + 0x65c], 0x10
jne 0x40c7be
mov edx, dword [0x43ba74]
mov edi, 1
mov dword [esp + 0x10], 0x43ba78
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
push edi
push ecx
push edx
mov edx, dword [esp + 0xd0]
push edx
call fcn.0040c200
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
add esp, 0x18
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov dword [eax], edx
pop edi
pop ebx
mov ecx, dword [esp + 0xa8]
pop esi
pop ebp
xor ecx, esp
call fcn.00422272
add esp, 0xa4
ret