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

Disassembly:
push 0xffffffffffffffff
push 0x43865e
mov eax, dword fs:[0]
push eax
sub esp, 0x7b0
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x7ac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0x7c4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x7d4]
mov ebx, dword [esp + 0x7d8]
xor esi, esi
push 0x13c
lea eax, [esp + 0x74]
push esi
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x78], esi
call fcn.00426e70
add esp, 0xc
call fcn.0041557a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407cc8
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
mov dword [esp + 0x7cc], esi
call fcn.0041557a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407cf9
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x4c], eax
mov byte [esp + 0x7cc], 1
call fcn.0041557a
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x407d2b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push str.FUNC_01VEN_10EC
lea ecx, [esp + 0x2c]
mov byte [esp + 0x7d0], 2
call fcn.004048f0
push str.FUNC_01VEN_8086
lea ecx, [esp + 0x40]
mov byte [esp + 0x7d0], 3
call fcn.004048f0
push str.FUNC_01VEN_1002
lea ecx, [esp + 0x38]
mov byte [esp + 0x7d0], 4
call fcn.004048f0
push str.FUNC_01VEN_10DE
lea ecx, [esp + 0x30]
mov byte [esp + 0x7d0], 5
call fcn.004048f0
push str.FUNC_01VEN_1106
lea ecx, [esp + 0x3c]
mov byte [esp + 0x7d0], 6
call fcn.004048f0
push str.FUNC_01VEN_1039
lea ecx, [esp + 0x44]
mov byte [esp + 0x7d0], 7
call fcn.004048f0
push str.FUNC_01VEN_10B9
lea ecx, [esp + 0x34]
mov byte [esp + 0x7d0], 8
call fcn.004048f0
mov ecx, dword [ebx + 0x20]
push esi
push esi
push 0x408
push ecx
mov byte [esp + 0x7dc], 9
call dword [0x43b494]
push edi
mov edi, dword [0x43b244]
lea edx, [esp + 0x5bc]
push edx
mov dword [esp + 0x24], eax
xor ebx, ebx
call edi
push str.oem.inf
lea eax, [esp + 0x5bc]
push eax
call dword [0x43b290]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x5bc]
push edx
call dword [0x43b250]
mov dword [esp + 0x48], eax
jmp 0x407e33
xor esi, esi
lea eax, [esp + 0x98]
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407e40
sub eax, ecx
push eax
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x4c]
call fcn.00402a70
mov ebp, dword [esp + 0x44]
push esi
push 2
push esi
push ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov esi, eax
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov edx, ebx
sub edx, ecx
jne 0x407eb5
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a
jge 0x407eb5
push edx
push eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + 0x20]
push 0x402
push ecx
call dword [0x43b494]
add dword [esp + 0x1c], 1
add ebx, 1
cmp esi, 0xffffffff
je 0x40810c
lea edx, [esp + 0x58]
push edx
push 0
push 0x43bf4c
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x407f13
push 0
push 0x100
lea eax, [esp + 0x1b4]
push eax
push 1
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x407f13
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x1b0]
push eax
push esi
call fcn.004016a0
test eax, eax
jne 0x407f1f
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
jmp 0x40822b
lea ecx, [esp + 0x58]
push ecx
push 0
lea edx, [esp + 0x1b4]
push edx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x407f13
push 0
push 0x100
lea eax, [esp + 0x1b4]
push eax
push 2
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x407f13
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042685a
add esp, 8
test eax, eax
je 0x407f83
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x158], 0
jne 0x408077
mov edx, dword [esp + 0x3c]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042685a
add esp, 8
test eax, eax
je 0x407fad
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x15c], 0
jne 0x408077
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042685a
add esp, 8
test eax, eax
je 0x407fd7
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x15c], 0
jne 0x408077
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042685a
add esp, 8
test eax, eax
je 0x407ffd
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x15c], 0
jne 0x408077
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042685a
add esp, 8
test eax, eax
je 0x408023
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x15c], 0
jne 0x408077
mov edx, dword [esp + 0x40]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042685a
add esp, 8
test eax, eax
je 0x408049
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x15c], 0
jne 0x408077
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 0x1b0]
push eax
call fcn.0042685a
add esp, 8
test eax, eax
je 0x407f13
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x15c], 0
je 0x407f13
lea edx, [esp + 0x58]
push edx
push str.MfgName
push str.Strings
push esi
mov dword [esp + 0x30], 1
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x40810c
push 0
push 0x100
lea eax, [esp + 0x1b4]
push eax
push 1
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x40810c
lea eax, [esp + 0x1ac]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4080c3
sub eax, edx
push eax
lea edx, [esp + 0x1b0]
push edx
lea ecx, [esp + 0x20]
call fcn.00402a70
lea ecx, [esp + 0x18]
call fcn.00402b80
mov eax, dword [esp + 0x18]
push str.REALTEK
push eax
call fcn.00426b1a
add esp, 8
test eax, eax
sete al
test al, al
je 0x40810c
mov dword [esp + 0x24], 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
cmp dword [esp + 0x20], 0
je 0x40822b
cmp dword [esp + 0x24], 0
je 0x40822b
push ebp
lea ecx, [esp + 0x6c0]
push ecx
call edi
push ebp
lea edx, [esp + 0x4b8]
push edx
call edi
mov esi, dword [esp + 0x54]
push esi
lea eax, [esp + 0x2b0]
push eax
call edi
push esi
lea ecx, [esp + 0x3b4]
push ecx
call edi
lea edx, [esp + 0x4b4]
push 0x43b8e8
push edx
call fcn.0042685a
mov esi, dword [0x43b290]
add esp, 8
mov byte [eax], 0x2e
mov byte [eax + 1], 0x50
mov byte [eax + 2], 0x4e
mov byte [eax + 3], 0x46
lea eax, [esp + 0x6bc]
push eax
lea ecx, [esp + 0x2b0]
push ecx
call esi
lea edx, [esp + 0x4b4]
push edx
lea eax, [esp + 0x3b4]
push eax
call esi
push ecx
lea edx, [esp + 0x2b0]
mov ecx, esp
mov dword [esp + 0x6c], esp
push edx
call fcn.004048f0
mov ecx, dword [esp + 0x18]
call fcn.00405310
mov esi, eax
push 0x80
lea eax, [esp + 0x2b0]
push eax
call dword [0x43b248]
lea ecx, [esp + 0x2ac]
push ecx
call dword [0x43b24c]
test eax, eax
je 0x40820a
test esi, esi
je 0x40820a
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x2a00]
imul edx, edx, 0xd0
mov dword [edx + eax + 0x15c], 1
push 0x80
lea eax, [esp + 0x3b4]
push eax
call dword [0x43b248]
lea ecx, [esp + 0x3b0]
push ecx
call dword [0x43b24c]
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x6c]
push edx
push eax
call dword [0x43b258]
test eax, eax
jne 0x407e31
cmp dword [esp + 0x20], eax
je 0x408254
cmp dword [esp + 0x24], eax
je 0x408254
lea esi, [eax + 1]
jmp 0x408256
xor esi, esi
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40827e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40831e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408346
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40836e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov byte [esp + 0x7cc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x7cc], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x7c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7ac]
xor ecx, esp
call fcn.00425d1a
add esp, 0x7bc
ret 8