Function at 0x41d820
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ffd0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x5a4cac
push 0x5dafc0
mov dword [ebp - 4], 1
call fcn.00403a80
mov edi, dword [esi]
add esp, 8
test edi, edi
je 0x41d8c4
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 0x41d889
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 0x41d8af
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 0x41d9ae
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 0x41d99c
cmp dword [esi + 0x8c], 0
je 0x41d99c
cmp dword [esi + 0x90], 0
je 0x41d99c
cmp dword [esi + 0x94], 0
je 0x41d99c
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 0x41d9a1
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 0x41d9ae
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 0x5dafc0
call fcn.00403a80
mov ecx, dword [esi + 0x28]
push ecx
push str.m_csDeviceID___s_r_n
push 0x5dafc0
call fcn.00403a80
mov edx, dword [esi + 0x2c]
push edx
push str.m_csSerialID___s_r_n
push 0x5dafc0
call fcn.00403a80
push 0x5a4da8
push 0x5dafc0
call fcn.00403a80
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 0x41da1d
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 0x41da43
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