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

Disassembly:
push 0xffffffffffffffff
push 0x415b41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push ebp
mov dword [esp + 0x28], ecx
push esi
push edi
lea ecx, [esp + 0x38]
call fcn.0040c9c0
xor ebx, ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x174], ebx
call fcn.00401070
lea ecx, [esp + 0x18]
mov byte [esp + 0x174], 1
call fcn.00401070
mov eax, dword [esp + 0x184]
xor esi, esi
cmp eax, ebx
mov byte [esp + 0x174], 2
je 0x403d76
cmp dword [esp + 0x188], ebx
je 0x403d76
mov edi, str.EP1394D3_
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x17c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.EP1394D3_
push ebp
call fcn.00415650
add esp, 0xc
test eax, eax
jne 0x403b47
mov eax, dword [esp + 0x184]
mov ecx, dword [esp + 0x30]
push eax
push ebp
call fcn.004038e0
mov esi, eax
jmp 0x403d3d
push str.SYSTEMCurrentControlSetControlDeviceClasses
lea ecx, [esp + 0x28]
call fcn.00401220
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
lea eax, [ecx + edx + 2]
lea ecx, [esp + 0x28]
push eax
call fcn.00401340
push eax
call fcn.0040ebb0
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.004013a0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push edx
push 0x80000002
lea ecx, [esp + 0x4c]
call fcn.0040ca00
test eax, eax
je 0x403d3d
xor edi, edi
lea eax, [esp + 0x60]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x78]
push ecx
push edx
push edi
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x34], 0x104
call fcn.0040cb80
test eax, eax
je 0x403c0f
lea ecx, [esp + 0x34]
lea edx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push ebp
call fcn.00403dd0
test eax, eax
je 0x403c08
mov eax, dword [esp + 0x180]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jne 0x403c08
mov esi, 1
jmp 0x403c0a
xor esi, esi
inc edi
cmp esi, ebx
je 0x403bad
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040ca40
cmp esi, ebx
je 0x403d3d
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
push edx
xor esi, esi
call fcn.00401200
lea eax, [esp + 0x68]
lea edi, [esp + 0x68]
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + edx + 2]
lea ecx, [esp + 0x1c]
push eax
call fcn.00401340
push eax
call fcn.0040ebb0
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.004013a0
mov edi, 0x41740c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x41740c
lea eax, [ecx + edx + 2]
lea ecx, [esp + 0x1c]
push eax
call fcn.00401340
push eax
call fcn.0040ebb0
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call fcn.004013a0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push edx
push 0x80000002
lea ecx, [esp + 0x4c]
call fcn.0040ca00
test eax, eax
je 0x403d3d
mov ecx, dword [esp + 0x184]
mov ebp, dword [esp + 0x188]
lea eax, [esp + 0x14]
lea edx, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push ebx
push str.SymbolicLink
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x2c], ebp
call fcn.0040caa0
mov esi, eax
cmp esi, ebx
je 0x403d2f
mov edi, dword [esp + 0x18c]
cmp edi, ebx
je 0x403d2f
cmp byte [edi], bl
je 0x403d2f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ecx + 1]
cmp ebp, edx
sbb esi, esi
inc esi
je 0x403d2f
mov eax, dword [esp + 0x184]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x3c]
call fcn.0040ca40
lea ecx, [esp + 0x18]
mov byte [esp + 0x174], 1
call fcn.00401100
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], bl
call fcn.00401100
lea ecx, [esp + 0x38]
mov dword [esp + 0x174], 0xffffffff
call fcn.0040d370
mov eax, esi
jmp 0x403dad
lea ecx, [esp + 0x18]
mov byte [esp + 0x174], 1
call fcn.00401100
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], bl
call fcn.00401100
lea ecx, [esp + 0x38]
mov dword [esp + 0x174], 0xffffffff
call fcn.0040d370
xor eax, eax
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x168
ret 0x14