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

Disassembly:
push 0xffffffffffffffff
push 0x46820b
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x47e378]
xor eax, esp
mov dword [esp + 0x364], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47e378]
xor eax, esp
push eax
lea eax, [esp + 0x37c]
mov dword fs:[0], eax
push fcn.00401640
push 0x401620
mov esi, ecx
push 2
push 0x1c
lea eax, [esi + 8]
push eax
mov dword [esp + 0x48], esi
mov dword [esi], vtable.CAdapterInformation.0
call fcn.00454171
push fcn.00401640
push 0x401620
push 2
push 0x1c
lea ecx, [esi + 0x40]
xor edi, edi
push ecx
mov dword [esp + 0x398], edi
call fcn.00454171
push fcn.00401640
push 0x401620
push 2
push 0x1c
lea edx, [esi + 0x78]
push edx
mov byte [esp + 0x398], 1
call fcn.00454171
push fcn.00401640
push 0x401620
push 2
push 0x1c
lea eax, [esi + 0xb0]
push eax
mov byte [esp + 0x398], 2
call fcn.00454171
push fcn.00401640
push 0x401620
push 2
push 0x1c
lea ecx, [esi + 0xe8]
push ecx
mov byte [esp + 0x398], 3
call fcn.00454171
push fcn.00401640
push 0x401620
push 2
push 0x1c
lea edx, [esi + 0x120]
push edx
mov byte [esp + 0x398], 4
call fcn.00454171
push fcn.00401640
push 0x401620
push 2
push 0x1c
lea eax, [esi + 0x158]
push eax
mov byte [esp + 0x398], 5
call fcn.00454171
push fcn.00401640
push 0x401620
push 2
push 0x1c
lea ecx, [esi + 0x190]
push ecx
mov byte [esp + 0x398], 6
call fcn.00454171
mov dword [esi + 4], edi
mov edx, dword [str.Intel]
mov ax, word [0x46c6ec]
mov byte [esp + 0x384], 7
mov dword [esp + 0x26c], edx
mov word [esp + 0x270], ax
push 0x128
lea ecx, [esp + 0x148]
push edi
push ecx
call fcn.004541e0
add esp, 0xc
mov dword [esp + 0x144], 0x128
mov dword [esp + 0x30], edi
call fcn.004010f0
cmp eax, 1
jne 0x401e07
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
mov dword [esp + 0x30], eax
je 0x401e07
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [0x47fa44], eax
je 0x401e07
push edi
call eax
lea edx, [esp + 0x144]
push edx
push edi
push edi
mov dword [esp + 0x34], edi
call fcn.004113d0
add esp, 0xc
cmp eax, 1
jne 0x402698
jmp 0x401e30
lea eax, [esp + 0x26c]
push eax
lea ecx, [esp + 0x16c]
push ecx
call fcn.004538f0
add esp, 8
test eax, eax
je 0x402652
add dword [esi + 4], 1
xor ebx, ebx
lea eax, [esp + 0x1ec]
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401e80
sub eax, edx
push eax
lea edx, [esp + 0x1f0]
push edx
lea ecx, [esp + 0x94]
call fcn.00401860
push 4
push ebx
push str.VEN_
lea ecx, [esp + 0x98]
mov byte [esp + 0x390], 8
call fcn.00401350
cmp eax, 0xffffffff
je 0x401f1b
push 4
add eax, 4
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x98]
call fcn.00401bd0
mov ecx, dword [esi + 4]
lea edx, [ecx*8]
push 0xffffffffffffffff
sub edx, ecx
push ebx
lea ecx, [esi + edx*4 - 0x14]
push eax
mov byte [esp + 0x390], 9
call fcn.00401780
mov ebp, 0x10
cmp dword [esp + 0x6c], ebp
mov byte [esp + 0x384], 8
jb 0x401f20
mov eax, dword [esp + 0x58]
push eax
call fcn.0045389c
add esp, 4
jmp 0x401f20
mov ebp, 0x10
push 4
push ebx
push str.DEV_
lea ecx, [esp + 0x98]
call fcn.00401350
cmp eax, 0xffffffff
je 0x401f8c
push 4
add eax, 4
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x98]
call fcn.00401bd0
mov ecx, dword [esi + 4]
lea edx, [ecx*8]
push 0xffffffffffffffff
sub edx, ecx
push ebx
lea ecx, [esi + edx*4 + 0x24]
push eax
mov byte [esp + 0x390], 0xa
call fcn.00401780
cmp dword [esp + 0x6c], ebp
mov byte [esp + 0x384], 8
jb 0x401f8c
mov eax, dword [esp + 0x58]
push eax
call fcn.0045389c
add esp, 4
push 4
push ebx
push str.REV_
lea ecx, [esp + 0x98]
call fcn.00401350
cmp eax, 0xffffffff
je 0x401ff8
push 2
add eax, 4
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x98]
call fcn.00401bd0
mov ecx, dword [esi + 4]
lea edx, [ecx*8]
push 0xffffffffffffffff
sub edx, ecx
push ebx
lea ecx, [esi + edx*4 + 0x5c]
push eax
mov byte [esp + 0x390], 0xb
call fcn.00401780
cmp dword [esp + 0x6c], ebp
mov byte [esp + 0x384], 8
jb 0x401ff8
mov eax, dword [esp + 0x58]
push eax
call fcn.0045389c
add esp, 4
mov eax, dword [esi + 4]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [esp + 0x168]
lea ecx, [esi + ecx*4 + 0x94]
lea edi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402015
sub eax, edi
push eax
lea edx, [esp + 0x16c]
push edx
call fcn.00401860
mov dword [esp + 0x20], ebx
mov eax, dword [esi + 4]
lea ecx, [eax*8]
sub ecx, eax
cmp dword [esi + ecx*4 + 0x3c], ebp
lea eax, [esi + ecx*4 + 0x24]
mov byte [esp + 0x384], 0xc
jb 0x402055
mov eax, dword [eax + 4]
jmp 0x402058
add eax, 4
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.004011e0
cmp dword [esp + 0xa8], ebp
mov eax, dword [esp + 0x94]
lea edx, [esp + 0x24]
mov byte [esp + 0x388], 0xd
push edx
jae 0x402089
lea eax, [esp + 0x98]
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.004011e0
mov byte [esp + 0x390], 0xc
call fcn.00427830
add esp, 0xc
cmp eax, 1
jne 0x4020fa
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4020c9
cmp dword [eax + 4], ebx
lea edi, [eax + 4]
jne 0x4020c5
mov eax, dword [eax]
push eax
call fcn.00453640
mov dword [edi], eax
mov edi, dword [edi]
jmp 0x4020cb
xor edi, edi
mov eax, dword [esi + 4]
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
lea ecx, [esi + ecx*4 + 0x13c]
lea ebp, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4020e3
sub eax, ebp
push eax
push edi
call fcn.00401860
mov ebp, 0x10
mov eax, dword [esi + 4]
lea ecx, [eax + 0xc]
lea edx, [ecx*8]
sub edx, ecx
cmp dword [esi + edx*4], ebx
jbe 0x402254
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], 0
push 1
lea ecx, [eax*8]
sub ecx, eax
push ebx
lea ecx, [esi + ecx*4 + 0x13c]
push 0x46c69c
mov byte [esp + 0x390], 0xe
call fcn.00401350
cmp eax, 0xffffffff
jne 0x40216f
mov eax, dword [esi + 4]
lea edx, [eax*8]
push 0xffffffffffffffff
sub edx, eax
lea eax, [esi + edx*4 + 0x13c]
push ebx
push eax
lea ecx, [esp + 0x60]
call fcn.00401780
jmp 0x4021be
push eax
push ebx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esi + 4]
lea ecx, [eax*8]
sub ecx, eax
lea ecx, [esi + ecx*4 + 0x13c]
call fcn.00401bd0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x390], 0xf
call fcn.00401780
cmp dword [esp + 0x50], ebp
mov byte [esp + 0x384], 0xe
jb 0x4021be
mov edx, dword [esp + 0x3c]
push edx
call fcn.0045389c
add esp, 4
push 0x104
lea eax, [esp + 0x278]
push ebx
push eax
call fcn.004541e0
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp dword [esp + 0x6c], ebp
jae 0x4021e2
lea eax, [esp + 0x58]
push 0x104
lea ecx, [esp + 0x278]
push ecx
push eax
call fcn.004110d0
add esp, 0xc
test eax, eax
jl 0x402239
mov eax, dword [esi + 4]
lea edx, [eax*8]
sub edx, eax
lea eax, [esp + 0x274]
lea ecx, [esi + edx*4 + 0x174]
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x402220
sub eax, edi
push eax
lea eax, [esp + 0x278]
push eax
call fcn.00401860
cmp dword [esp + 0x6c], ebp
mov byte [esp + 0x384], 0xc
jb 0x402254
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0045389c
add esp, 4
push 0x9c
lea edx, [esp + 0xac]
push ebx
push edx
call fcn.004541e0
lea eax, [esp + 0x154]
add esp, 0xc
mov word [esp + 0xcc], 0x9c
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], 0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402295
sub eax, edx
push eax
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x78]
call fcn.00401860
mov eax, dword [esi + 4]
lea ecx, [eax*8]
sub ecx, eax
push ebx
lea ecx, [esi + ecx*4 + 0x104]
push 0x46c698
mov byte [esp + 0x38c], 0x10
call fcn.00401860
mov dword [esp + 0x1c], ebx
lea esp, [esp]
cmp dword [esp + 0x88], ebp
mov eax, dword [esp + 0x74]
jae 0x4022f1
lea eax, [esp + 0x74]
mov ecx, dword [esp + 0x1c]
push ebx
lea edx, [esp + 0xac]
push edx
push ecx
push eax
call fcn.00411350
add esp, 0x10
cmp eax, 1
jne 0x402490
cmp dword [esp + 0x110], 8
jb 0x40247f
mov ecx, dword [esp + 0x114]
cmp ecx, 0x280
jb 0x40247f
mov eax, dword [esp + 0x118]
cmp eax, 0x1e0
jb 0x40247f
cmp ecx, eax
jbe 0x40247f
push 0
lea edx, [esp + 0x1b]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xb4]
push ecx
mov dword [esp + 0x28], 0
mov byte [esp + 0x27], 1
call fcn.00411bd0
mov edx, dword [esp + 0x28]
add esp, 0x10
push edx
lea ecx, [esp + 0x28]
call fcn.00401270
mov ebx, dword [esp + 0x24]
test ebx, ebx
mov byte [esp + 0x384], 0x11
je 0x4023a9
cmp dword [ebx + 4], 0
jne 0x4023a4
mov eax, dword [ebx]
push eax
call fcn.00453640
mov dword [ebx + 4], eax
mov edx, dword [ebx + 4]
jmp 0x4023ab
xor edx, edx
mov eax, dword [esi + 4]
lea ecx, [eax*8]
sub ecx, eax
mov eax, edx
lea edi, [esi + ecx*4 + 0x104]
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4023c3
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.00401aa0
cmp dword [esp + 0x88], 0x10
mov eax, dword [esp + 0x74]
jae 0x4023e9
lea eax, [esp + 0x74]
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0xac]
push edx
add ecx, 1
push ecx
push eax
call fcn.00411350
add esp, 0x10
cmp eax, 1
jne 0x402428
mov eax, dword [esi + 4]
lea edx, [eax*8]
sub edx, eax
push 1
lea ecx, [esi + edx*4 + 0x104]
push 0x46c69c
call fcn.00401aa0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402437
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test ebx, ebx
mov byte [esp + 0x384], 0x10
je 0x40247f
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x402477
mov eax, dword [ebx]
test eax, eax
je 0x40245e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
test eax, eax
je 0x40246e
push eax
call fcn.00453c8b
add esp, 4
push ebx
call fcn.0045389c
add esp, 4
mov dword [esp + 0x24], 0
add dword [esp + 0x1c], 1
mov ebp, 0x10
xor ebx, ebx
jmp 0x4022e0
push 0x9c
lea ecx, [esp + 0xac]
push ebx
push ecx
call fcn.004541e0
mov eax, dword [esp + 0x80]
add esp, 0xc
cmp dword [esp + 0x88], ebp
mov word [esp + 0xcc], 0x9c
jae 0x4024c4
lea eax, [esp + 0x74]
lea edx, [esp + 0xa8]
push edx
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_EnumDisplaySettingsA]
cmp eax, 1
jne 0x4025b7
mov byte [esp + 0x17], al
push 0
lea eax, [esp + 0x1b]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xb4]
push edx
mov dword [esp + 0x28], 0
call fcn.00411bd0
mov eax, dword [esp + 0x28]
add esp, 0x10
push eax
lea ecx, [esp + 0x30]
call fcn.00401270
mov ebx, dword [esp + 0x2c]
test ebx, ebx
mov byte [esp + 0x384], 0x12
je 0x40253a
cmp dword [ebx + 4], 0
jne 0x402535
mov ecx, dword [ebx]
push ecx
call fcn.00453640
mov dword [ebx + 4], eax
mov edx, dword [ebx + 4]
jmp 0x40253c
xor edx, edx
mov eax, dword [esi + 4]
lea ecx, [eax*8]
sub ecx, eax
mov eax, edx
lea edi, [esi + ecx*4 + 0xcc]
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402554
sub eax, ebp
push eax
push edx
mov ecx, edi
call fcn.00401860
mov eax, dword [esp + 0x18]
test eax, eax
je 0x402577
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ebp, ebp
cmp ebx, ebp
je 0x4025b9
lea edx, [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x4025b1
mov eax, dword [ebx]
cmp eax, ebp
je 0x402598
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x4025a8
push eax
call fcn.00453c8b
add esp, 4
push ebx
call fcn.0045389c
add esp, 4
mov dword [esp + 0x2c], ebp
jmp 0x4025b9
xor ebp, ebp
mov ebx, 0x10
cmp dword [esp + 0x88], ebx
jb 0x4025d4
mov eax, dword [esp + 0x74]
push eax
call fcn.0045389c
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebp
mov byte [esp + 0x74], 0
je 0x402631
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebp
jne 0x40262d
cmp edi, ebp
je 0x40262d
mov eax, dword [edi]
cmp eax, ebp
je 0x402614
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
cmp eax, ebp
je 0x402624
push eax
call fcn.00453c8b
add esp, 4
push edi
call fcn.0045389c
add esp, 4
mov dword [esp + 0x20], ebp
cmp dword [esp + 0xa4], ebx
mov byte [esp + 0x384], 7
jb 0x402652
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0045389c
add esp, 4
push 0x128
lea edx, [esp + 0x148]
push 0
push edx
call fcn.004541e0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x150]
add eax, 1
push ecx
push eax
push 0
mov dword [esp + 0x15c], 0x128
mov dword [esp + 0x40], eax
call fcn.004113d0
add esp, 0x18
cmp eax, 1
je 0x401e30
mov eax, dword [0x47fa44]
test eax, eax
je 0x4026a5
push 1
call eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4026b4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [esp + 0x37c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x364]
xor ecx, esp
call fcn.00454162
add esp, 0x374
ret