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

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 2
mov ebx, ecx
push str.CTetrisClientManager::SetImPlayer
call fcn.00408620
mov eax, dword [esp + 0x1c]
xor ebp, ebp
cmp eax, ebp
mov dword [ebx + 0x38], eax
jne 0x406907
mov eax, dword [ebx + 0x1ec0]
lea esi, [ebx + 0x1e70]
mov edi, 1
cmp eax, edi
jne 0x406790
cmp dword [esi + 8], edi
jbe 0x4068b8
mov dword [esi + 0x50], edi
mov eax, dword [esi + 0x1c]
cmp eax, ebp
jne 0x406761
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jbe 0x406781
cmp dword [esi + 0x1c], ebp
jne 0x40676e
mov dword [esi + 0x3c], ebp
mov eax, dword [esi + 0x3c]
mov ecx, esi
dec eax
mov dword [esi + 0x2c], eax
call fcn.00406940
jmp 0x4068b8
mov ecx, esi
mov dword [esi + 0x2c], ebp
call fcn.00406940
jmp 0x4068b8
mov dword [esi + 0x78], eax
mov eax, dword [esi + 8]
cmp eax, edi
jbe 0x4068b8
mov dword [esi + 0x50], edi
mov eax, dword [esi + 0x1c]
cmp eax, ebp
jne 0x4067ab
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jbe 0x4067c1
cmp dword [esi + 0x1c], ebp
jne 0x4067b8
mov dword [esi + 0x3c], ebp
mov ecx, dword [esi + 0x3c]
dec ecx
mov dword [esi + 0x2c], ecx
jmp 0x4067c4
mov dword [esi + 0x2c], ebp
cmp dword [esi + 0xc], ebp
je 0x4068b8
cmp dword [esi + 0x74], ebp
je 0x4068b8
mov ecx, esi
call fcn.00406bb0
mov ecx, esi
call fcn.00406c00
mov edx, dword [esi + 0x50]
mov ecx, esi
push edx
call fcn.00406c80
mov eax, dword [esi + 0x50]
mov ecx, esi
push eax
call fcn.00406d20
mov eax, dword [esi + 0x50]
cmp dword [esi + eax*4 + 0x28], ebp
ja 0x406852
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0xc]
push eax
push edi
mov edx, dword [ecx]
push edi
push ebp
push 0xff
push ebp
push ebp
mov ecx, esi
mov dword [esp + 0x38], edx
call fcn.00406bb0
imul ax, word [esi + 0x50]
push eax
mov ecx, esi
call fcn.00406c00
push eax
mov ecx, esi
call fcn.00406bb0
mov cx, word [esi + 0x4a]
mov dx, word [esi + 0x48]
push eax
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
call dword [edx + 0x24]
jmp 0x4068b8
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x50]
push ecx
mov edx, dword [eax]
push 1
push 1
push ebp
push 0xff
push ebp
push ebp
push edi
mov ecx, esi
mov dword [esp + 0x3c], edx
call fcn.00406c50
mov ebp, eax
push edi
sub bp, word [esi + edi*4 + 0x28]
mov ecx, esi
call fcn.00406c80
imul ebp, eax
push ebp
mov ecx, esi
call fcn.00406c00
push eax
mov ecx, esi
call fcn.00406bb0
mov dx, word [esi + 0x4a]
mov ecx, dword [esi + 0x50]
push eax
mov ax, word [esi + 0x48]
push edx
mov edx, dword [esi + ecx*4 + 0x18]
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call dword [ecx + 0x24]
xor ebp, ebp
mov ecx, ebx
call fcn.00406dc0
test eax, eax
jne 0x406934
xor esi, esi
push esi
mov ecx, ebx
call fcn.004071d0
mov byte [esp + 0x1c], al
mov edx, dword [esp + 0x1c]
and edx, 0xff
mov ecx, dword [ebx + edx*4 + 0xc]
lea edi, [ebx + edx*4 + 0xc]
call fcn.00401160
mov ecx, dword [edi]
push ebp
call fcn.00402e90
inc esi
cmp esi, 6
jl 0x4068c5
mov ecx, ebx
call fcn.004089b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
movzx ax, byte [ebx + 0x12c]
mov edx, dword [ebx + 0x2c1c]
lea ecx, [esp + 0x10]
push 8
push ecx
push edx
mov word [esp + 0x1e], ax
mov word [esp + 0x1c], 0x11
mov dword [esp + 0x20], 0x4b0
call dword [ebx + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4