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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5170c7
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x56a5a0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x47dd7a
cmp word [eax], 0
jne 0x47dd90
push str.ASSERT:__IsStrEmpty_szUserId____IsStrEmpty_szLoginType____IsStrEmpty_szActivation_
push 0x762
push str.d:code_sharecube_branches_branch_wps_release_srcclientincludexlive_xlive_hlp.h
xor ecx, ecx
call fcn.0040ef48
lea eax, [esp + 0x20]
push 1
push eax
mov ebx, str.LoginType
call fcn.0040d2b0
pop ecx
pop ecx
and dword [esp + 0x90], 0
lea eax, [esp + 0x54]
push eax
call fcn.0040df06
mov byte [esp + 0x90], 1
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x54]
push eax
push 0x2a
call fcn.00446071
lea eax, [esp + 0x1c]
push eax
call fcn.0047dcf0
add esp, 0xc
mov byte [esp + 0x90], 2
mov ebx, dword [esp + 0x60]
lea edi, [esp + 0x54]
lea esi, [esp + 0x34]
call fcn.0040dc5a
jmp 0x47dfc5
lea eax, [esp + 0x6c]
push eax
call fcn.0040df06
mov byte [esp + 0x90], 3
lea esi, [esp + 0x34]
call fcn.004087ff
mov eax, dword [eax]
lea ecx, [esp + 0x6c]
push ecx
push 0x7c
mov ecx, eax
call fcn.00446071
mov ebx, dword [esp + 0x80]
pop ecx
pop ecx
lea edi, [esp + 0x6c]
lea esi, [esp + 0x3c]
call fcn.0040dc5a
call fcn.004087ff
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004029d3
mov byte [esp + 0x90], 4
call fcn.0044a5f1
call fcn.004087ff
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004029d3
mov byte [esp + 0x90], 5
call fcn.0044a5f1
call fcn.004087ff
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004029d3
mov byte [esp + 0x90], 6
lea eax, [esp + 0x18]
push eax
call fcn.004028b3
mov byte [esp + 0x90], 7
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x78]
and eax, 0xfffffffc
cmp eax, 0x10
jne 0x47dec0
call fcn.0044a5f1
call fcn.004087ff
lea edi, [esp + 0x18]
call fcn.00403a2e
push dword [ebp + 8]
lea eax, [esp + 0x2c]
push eax
call fcn.00403739
mov esi, eax
mov byte [esp + 0x90], 8
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00409c07
mov byte [esp + 0x90], 9
mov esi, dword [esi]
mov eax, dword [eax]
push esi
push eax
call fcn.004ca0f8
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
pop ecx
inc bl
mov byte [esp + 0x90], 8
lea eax, [esp + 0x24]
push eax
call fcn.00403148
mov byte [esp + 0x90], 7
lea eax, [esp + 0x28]
push eax
call fcn.00403148
test bl, bl
je 0x47df66
push dword [esp + 0x38]
lea eax, [esp + 0x50]
push dword [esp + 0x38]
lea ecx, [esp + 0x5c]
call fcn.00470332
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov dword [esp + 0x34], ecx
jne 0x47df6f
lea eax, [esp + 0x18]
lea edi, [esp + 0x14]
call fcn.00403a2e
jmp 0x47df6f
lea esi, [esp + 0x34]
call fcn.0044a5f1
mov byte [esp + 0x90], 6
lea ecx, [esp + 0x18]
call fcn.004028da
mov byte [esp + 0x90], 5
lea ecx, [esp + 0x2c]
call fcn.004028da
mov byte [esp + 0x90], 4
lea ecx, [esp + 0x30]
call fcn.004028da
mov byte [esp + 0x90], 3
lea ecx, [esp + 0x1c]
call fcn.004028da
mov byte [esp + 0x90], 2
lea eax, [esp + 0x6c]
push eax
call fcn.0040dd8b
mov ebx, dword [esp + 0x64]
lea edi, [esp + 0x54]
lea esi, [esp + 0x44]
call fcn.0040dc5a
mov edi, esi
lea esi, [esp + 0x34]
call fcn.0044a5c7
test al, al
je 0x47ddf8
mov esi, 0x538778
push esi
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0047039c
add esp, 0xc
mov byte [esp + 0x90], 0xa
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x47e025
mov eax, esi
call fcn.00402826
push eax
push esi
lea eax, [esp + 0x18]
call fcn.0040cf64
push dword [ebp + 8]
lea eax, [esp + 0x14]
push eax
call fcn.0040cfe0
mov esi, 0x532010
mov eax, esi
call fcn.00402826
push eax
push esi
lea eax, [esp + 0x18]
call fcn.0040cf64
push 0x538734
lea eax, [esp + 0x14]
push eax
call fcn.0040cfe0
mov eax, esi
call fcn.00402826
push eax
push esi
lea eax, [esp + 0x18]
call fcn.0040cf64
push 0x538730
lea eax, [esp + 0x14]
push eax
call fcn.0040cfe0
mov eax, esi
call fcn.00402826
push eax
push esi
lea eax, [esp + 0x18]
call fcn.0040cf64
mov eax, dword [esp + 0x14]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x18]
call fcn.0040cf64
push dword [esp + 0x10]
mov edi, str.LoginType
call fcn.0040aa27
pop ecx
mov byte [esp + 0x90], 2
lea ecx, [esp + 0x10]
call fcn.004028da
mov byte [esp + 0x90], 1
lea ecx, [esp + 0x14]
call fcn.004028da
mov byte [esp + 0x90], 0
lea eax, [esp + 0x54]
push eax
call fcn.0040dd8b
or dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004028da
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret