Function at 0x1003b680
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b1d29
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1022ee34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
call fcn.100434d9
mov ecx, eax
test ecx, ecx
je 0x1003b87d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.10007de0
test al, al
jne 0x1003b6ee
push esi
lea ecx, [ebp - 0x18]
call fcn.1003c1d0
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi - 0x10]
lea edi, [esi - 0x10]
mov dword [ebp - 0x14], 0
test ecx, ecx
je 0x1003b714
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x1003b72a
call fcn.100434d9
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1003b887
mov eax, dword [ecx]
call dword [eax + 0xc]
push 0x11
push str.SMBus_Engine.dll
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.1003c2e0
add esp, 0x14
mov byte [ebp - 4], 3
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1003b76c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1003b83a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SMBusInitialization
push eax
call edi
push str.SMB_ByteRead
push dword [ebp - 0x18]
mov dword [ebx], eax
call edi
push str.SMB_ByteWrite
push dword [ebp - 0x18]
mov dword [ebx + 4], eax
call edi
push str.SMB_BlockRead1
push dword [ebp - 0x18]
mov dword [ebx + 8], eax
call edi
push str.SMB_BlockWrite1
push dword [ebp - 0x18]
mov dword [ebx + 0xc], eax
call edi
push str.SMB_BlockRead2
push dword [ebp - 0x18]
mov dword [ebx + 0x10], eax
call edi
push str.SMB_BlockWrite2
push dword [ebp - 0x18]
mov dword [ebx + 0x14], eax
call edi
push str.SMB_BlockRead3
push dword [ebp - 0x18]
mov dword [ebx + 0x18], eax
call edi
push str.SMB_BlockWrite3
push dword [ebp - 0x18]
mov dword [ebx + 0x1c], eax
call edi
push str.SMB_BlockRead
push dword [ebp - 0x18]
mov dword [ebx + 0x20], eax
call edi
push str.SMBus_SetSPDPage
push dword [ebp - 0x18]
mov dword [ebx + 0x24], eax
call edi
push str.SMBusGetAddress
push dword [ebp - 0x18]
mov dword [ebx + 0x28], eax
call edi
push str.SMBusReload
push dword [ebp - 0x18]
mov dword [ebx + 0x2c], eax
call edi
push str.SMBusRelease
push dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
call edi
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x38], 0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003b85d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1017859f
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10008360
push 0x80004005
call fcn.10008360
int3