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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe49e
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x547320]
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 edi, ecx
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x128], 0
mov esi, dword [edi]
add esi, 0x30
push esi
mov dword [ebp - 0x130], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
lea ecx, [edi + 4]
mov ebx, dword [edi]
push ecx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x12c], eax
push dword [eax + 4]
push eax
call fcn.004430a0
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [ebx + 0x14]
sub ecx, eax
cmp ecx, 1
jae 0x4764a3
push str.list_T__too_long
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xlength_error_char_const__]
inc eax
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x12c]
push esi
mov dword [eax + 4], edx
mov eax, dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [eax], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
cmp byte [edi + 8], cl
je 0x47659c
lea eax, [ebp - 0x58]
mov dword [ebp - 0x78], ecx
push eax
mov eax, dword [edi]
push 0xffffffffffffffff
push ecx
add eax, 0x78
mov word [ebp - 0x88], cx
push eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x74], 7
call fcn.0040ab10
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xa4], 0
call fcn.00426fa0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040a880
cmp dword [ebp - 0x14], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x47653a
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x47655f
push dword [ebp - 0x88]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x128], 1
call fcn.004828d0
mov ebx, 3
jmp 0x47665b
lea eax, [ebp - 0x70]
mov word [ebp - 0x40], cx
push eax
mov eax, dword [edi]
lea ecx, [ebp - 0x40]
push 0xffffffffffffffff
add eax, 0x78
mov dword [ebp - 0x2c], 7
push 0
push eax
mov dword [ebp - 0x30], 0
call fcn.0040ab10
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0xf4], 0
call fcn.00426fa0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xf0]
call fcn.0040a880
cmp dword [ebp - 0x14], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x476604
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x476626
push dword [ebp - 0x40]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 5
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x128], 4
call fcn.00482840
mov ebx, 0xc
push eax
lea ecx, [ebp - 0x124]
call fcn.0040a880
mov dword [ebp - 4], 6
test bl, 8
je 0x476698
and ebx, 0xfffffff7
cmp dword [ebp - 0x5c], 8
jb 0x476684
push dword [ebp - 0x70]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
test bl, 4
je 0x4766d1
and ebx, 0xfffffffb
cmp dword [ebp - 0xdc], 8
jb 0x4766b4
push dword [ebp - 0xf0]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xf0], ax
test bl, 2
je 0x4766fb
and ebx, 0xfffffffd
cmp dword [ebp - 0x44], 8
jb 0x4766e7
push dword [ebp - 0x58]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 9
test bl, 1
je 0x476735
cmp dword [ebp - 0x8c], 8
jb 0x476718
push dword [ebp - 0xa0]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
mov ebx, dword [ebp - 0x134]
lea eax, [ebp - 0xbc]
push eax
xor ecx, ecx
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
mov eax, dword [ebx]
push ecx
add eax, 0x78
mov word [ebp - 0x28], cx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
call fcn.0040ab10
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xd8], 0
call fcn.00426fa0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040a880
cmp dword [ebp - 0x2c], 8
jb 0x47679e
push dword [ebp - 0x40]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x4767c0
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xb
call fcn.00482840
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xc0], 8
jb 0x4767fb
push dword [ebp - 0xd4]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
xor ecx, ecx
lea eax, [ebp - 0x10c]
mov word [ebp - 0x40], cx
push eax
mov eax, dword [ebx]
push 0xffffffffffffffff
push ecx
add eax, 0x78
mov dword [ebp - 0xc4], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
call fcn.0040ab10
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0xa4], 0
call fcn.00426fa0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040a880
cmp dword [ebp - 0x14], 8
jb 0x47687b
push dword [ebp - 0x28]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x47689d
push dword [ebp - 0x40]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xf
call fcn.004827b0
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x8c], 8
jb 0x4768d8
push dword [ebp - 0xa0]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
lea ecx, [ebx + 0xc]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x90], 0
push eax
call fcn.0041c6a0
mov ecx, eax
mov byte [ebp - 4], 0x12
call fcn.0047a300
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x44], 8
jb 0x47691e
push dword [ebp - 0x58]
call edi
add esp, 4
push str.xxxxxxxx_data_add
push 0x1a3
push str.common::Players::cloneEx::_lambda_8f43e49241185d4a3d6adcd3106f7c6b_::operator___
call fcn.004847a0
add esp, 0xc
push 0
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0x130], esp
mov dword [ebp - 0x134], esi
mov dword [esp + 0x18], 0x3e4ccccd
mov dword [esi + 0x10], 0
push 0x30
mov byte [ebp - 4], 0x13
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
jne 0x476970
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_alloc_void_]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
push ecx
lea ecx, [ebx + 0x58]
mov byte [ebp - 4], 0x15
push ecx
mov ecx, eax
call fcn.0047c250
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x16
push eax
lea ecx, [ebx + 0x3c]
call fcn.00426eb0
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x17
push eax
call fcn.00493930
add esp, 8
mov esi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x124]
call fcn.00426eb0
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x19
push eax
call fcn.00493930
add esp, 8
mov byte [ebp - 4], 0x1a
push esi
push eax
mov byte [ebp - 4], 0x1e
call fcn.00490100
add esp, 0x28
cmp dword [ebp - 0x44], 0x10
jb 0x4769f9
push dword [ebp - 0x58]
call edi
add esp, 4
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x476a19
push dword [ebp - 0x70]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x476a3b
push dword [ebp - 0x28]
call edi
add esp, 4
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x476a62
push dword [ebp - 0x88]
call edi
add esp, 4
push str.xxxxxxxx_sdcard_add
push 0x1a7
push str.common::Players::cloneEx::_lambda_8f43e49241185d4a3d6adcd3106f7c6b_::operator___
call fcn.004847a0
add esp, 0xc
push 0
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x130], esp
mov dword [esp + 0x18], 0
mov dword [eax + 0x10], 0
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0x1f
push eax
lea ecx, [ebx + 0x24]
call fcn.00426eb0
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x20
push eax
call fcn.00493930
add esp, 8
mov esi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x21
push eax
lea ecx, [ebp - 0xbc]
call fcn.00426eb0
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x22
push eax
call fcn.00493930
add esp, 8
mov byte [ebp - 4], 0x23
push esi
push eax
mov byte [ebp - 4], 0x27
call fcn.00490100
add esp, 0x28
cmp dword [ebp - 0x44], 0x10
jb 0x476aff
push dword [ebp - 0x58]
call edi
add esp, 4
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x476b1f
push dword [ebp - 0x70]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
jb 0x476b41
push dword [ebp - 0x28]
call edi
add esp, 4
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x74], 8
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x476b68
push dword [ebp - 0x88]
call edi
add esp, 4
push str.xxxxxxxx_ststen_add
push 0x1ab
push str.common::Players::cloneEx::_lambda_8f43e49241185d4a3d6adcd3106f7c6b_::operator___
call fcn.004847a0
mov esi, dword [ebx]
add esp, 0xc
add esi, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebx]
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
cmp eax, ecx
je 0x476bc5
mov edx, dword [ebp - 0x138]
mov edx, dword [edx]
mov edi, edi
cmp dword [eax + 8], edx
je 0x476bad
mov eax, dword [eax]
cmp eax, ecx
jne 0x476ba0
jmp 0x476bc5
mov edx, dword [eax + 4]
mov ecx, dword [eax]
push eax
mov dword [edx], ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [ebx + 0x14]
call edi
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xf8], 8
jb 0x476be0
push dword [ebp - 0x10c]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0xf8], 7
cmp dword [ebp - 0xa8], 8
mov dword [ebp - 0xfc], 0
mov word [ebp - 0x10c], ax
jb 0x476c11
push dword [ebp - 0xbc]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0xa8], 7
cmp dword [ebp - 0x110], 8
mov dword [ebp - 0xac], 0
mov word [ebp - 0xbc], ax
jb 0x476c42
push dword [ebp - 0x124]
call edi
add esp, 4
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.004f203a
mov esp, ebp
pop ebp
ret