Function at 0x41da60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56ffa0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
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 str.COsasoi::Initialize_r_n
push 0x5dafc0
mov dword [ebp - 4], 1
call fcn.00403a80
mov edi, dword [esi]
xor ebx, ebx
add esp, 8
cmp edi, ebx
je 0x41db09
mov byte [ebp - 4], bl
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 0x41dacd
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 0x41daf3
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
pop ebx
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
cmp eax, ebx
je 0x41dc47
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitOsasoiDLL
push eax
call edi
mov edx, dword [esi + 0x88]
push str.GetAppletStatus
push edx
mov dword [esi + 0x74], eax
call edi
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x88]
push str.GetRegistrationURL
push eax
call edi
mov ecx, dword [esi + 0x88]
push str.ReleaseOsasoiDLL
push ecx
mov dword [esi + 0x7c], eax
call edi
mov edx, dword [esi + 0x88]
push str.SetAppletResult
push edx
mov dword [esi + 0x84], eax
call edi
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0x88]
push str.ReleaseOsasoiDLL
push eax
call edi
mov ecx, dword [esi + 0x88]
push str.SetAppletResult
push ecx
mov dword [esi + 0x84], eax
call edi
mov edx, dword [esi + 0x88]
push str.GetAnonymouseAppletURL
push edx
mov dword [esi + 0x80], eax
call edi
mov dword [esi + 0x98], eax
mov eax, dword [esi + 0x88]
push str.SetAnonymouseAcceptFlg
push eax
call edi
mov dword [esi + 0x9c], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x74], ebx
je 0x41dc36
cmp dword [esi + 0x78], ebx
je 0x41dc36
cmp dword [esi + 0x7c], ebx
je 0x41dc36
cmp dword [esi + 0x84], ebx
je 0x41dc36
cmp dword [esi + 0x80], ebx
je 0x41dc36
cmp dword [esi + 0x98], ebx
je 0x41dc36
cmp eax, ebx
je 0x41dc36
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [esi + 0x24]
push eax
push ebx
lea ecx, [ebp + 0xc]
call fcn.00401e30
mov ecx, dword [esi + 0x74]
push eax
call ecx
mov dword [esi], eax
cmp eax, ebx
je 0x41dc3a
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [esi + 0x28]
call fcn.004019e0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [esi + 0x2c]
call fcn.004019e0
cmp dword [esi], ebx
jne 0x41dc47
mov ecx, dword [esi + 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esi]
push edx
push str.m_bInit___d_r_n
push 0x5dafc0
call fcn.00403a80
mov eax, dword [esi + 0x28]
push eax
push str.m_csDeviceID___s_r_n
push 0x5dafc0
call fcn.00403a80
mov ecx, dword [esi + 0x2c]
push ecx
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], bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0x2c
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41dcb5
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 0x41dcdb
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
pop ebx
mov esp, ebp
pop ebp
ret 8