Function at 0x427180
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586770
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ef60c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x5be864
push 0x5f80f8
mov dword [ebp - 4], 1
call fcn.00403a70
mov edi, dword [esi]
add esp, 8
test edi, edi
je 0x427224
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4271e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42720f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x88], eax
test eax, eax
je 0x42730e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitOsasoiDLL2
push eax
call edi
mov edx, dword [esi + 0x88]
push str.GetRegistrationURL2
push edx
mov dword [esi + 0x8c], eax
call edi
mov dword [esi + 0x90], eax
mov eax, dword [esi + 0x88]
push str.GetRegistrationURL
push eax
call edi
mov ecx, dword [esi + 0x88]
push str.GetWarrantyURL
push ecx
mov dword [esi + 0x7c], eax
call edi
mov edx, dword [esi + 0x88]
push str.ReleaseOsasoiDLL
push edx
mov dword [esi + 0x94], eax
call edi
mov dword [esi + 0x84], eax
mov dword [ebp - 0x10], 0
test eax, eax
je 0x4272fc
cmp dword [esi + 0x8c], 0
je 0x4272fc
cmp dword [esi + 0x90], 0
je 0x4272fc
cmp dword [esi + 0x94], 0
je 0x4272fc
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 0x24]
push ecx
push 0
lea ecx, [ebp + 0xc]
call fcn.00401e30
mov edx, dword [esi + 0x8c]
push eax
call edx
mov dword [esi], eax
test eax, eax
je 0x427301
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0x28]
call fcn.00401fb0
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [esi + 0x2c]
call fcn.004019e0
cmp dword [esi], 0
jne 0x42730e
mov edx, dword [esi + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi]
push eax
push str.m_bInit___d_r_n
push 0x5f80f8
call fcn.00403a70
mov ecx, dword [esi + 0x28]
push ecx
push str.m_csDeviceID___s_r_n
push 0x5f80f8
call fcn.00403a70
mov edx, dword [esi + 0x2c]
push edx
push str.m_csSerialID___s_r_n
push 0x5f80f8
call fcn.00403a70
push 0x5be960
push 0x5f80f8
call fcn.00403a70
mov esi, dword [esi]
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0x2c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42737d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4273a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8