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

Disassembly:
sub esp, 0xc
push esi
push 2
mov esi, ecx
push str.CTetrisClientManager::InitButtons
call fcn.00408620
mov eax, dword [esi + 0x48]
test eax, eax
je 0x407a89
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x407a89
push ebx
push ebp
lea ebp, [esi + 0x1e4]
lea ebx, [esi + 0x1c28]
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
lea edi, [esi + 0x1c80]
jmp 0x4074b7
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0x2370]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x4c]
add ecx, edx
mov edx, dword [esi + 8]
test eax, eax
je 0x4074f7
test edx, edx
je 0x4074f7
mov dword [edi + 0x3c], edx
mov dword [edi + 0x60], ecx
mov dword [edi - 4], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
mov dword [edi], eax
je 0x4074f7
mov eax, dword [edi - 4]
push eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov ax, word [ebx + 4]
mov dx, word [ebx]
mov word [edi + 0x38], dx
mov word [edi + 0x3a], ax
mov dword [edi - 8], 4
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0x48]
push 0
push 0
push edx
mov edx, dword [esi + 0x140]
mov ecx, dword [eax]
push edx
push str.CUSTOMBMP
push 0x42b368
push eax
call dword [ecx + 0x3c]
mov edx, dword [ebp]
push 0
push 0
push edx
mov edx, dword [esi + 0x140]
mov ebx, eax
mov eax, dword [esi + 0x48]
push edx
push str.CUSTOMBMP
push 0x42b368
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov ebp, eax
mov eax, dword [edi + 4]
test eax, eax
je 0x407570
mov ecx, dword [edi - 4]
test ecx, ecx
je 0x407570
mov ecx, dword [edi]
test ecx, ecx
je 0x407570
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x20]
mov eax, dword [edi]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov dword [edi + 4], eax
mov eax, dword [edi - 4]
test eax, eax
je 0x4075b2
cmp dword [edi], 0
je 0x4075b2
mov dword [edi + 0x24], 0
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x40759f
mov eax, dword [edi]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
mov eax, dword [edi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov dword [edi + 0x14], eax
mov dword [edi + 0x34], 4
mov dword [edi + 0x58], 1
mov eax, dword [esi + 0x48]
push ebx
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
mov eax, dword [esi + 0x48]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
lea ebx, [edi - 0x10]
mov ecx, esi
push ebx
call fcn.0040af50
mov eax, dword [edi + 0x40]
cmp eax, 1
je 0x4075e3
mov dword [edi + 0x68], eax
push 1
mov ecx, ebx
call fcn.00407a90
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
inc eax
add ebp, 4
add ebx, 8
add edi, 0x80
cmp eax, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
jl 0x4074af
mov ecx, dword [esi + 0x2370]
mov eax, dword [esi + 0x4c]
mov edx, dword [esi + 8]
add ecx, 4
test eax, eax
lea edi, [esi + 0x1e70]
je 0x40765f
test edx, edx
je 0x40765f
mov dword [edi + 0x4c], edx
mov dword [edi + 0x70], ecx
mov dword [edi + 0xc], eax
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
test eax, eax
mov dword [edi + 0x10], eax
je 0x40765f
mov eax, dword [edi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [edi + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 4]
mov ax, word [esi + 0x1c54]
mov cx, word [esi + 0x1c50]
mov word [edi + 0x48], cx
mov word [edi + 0x4a], ax
mov dword [esi + 0x1e78], 4
mov ecx, dword [esi + 0x1f4]
mov eax, dword [esi + 0x48]
push 0
push 0
push ecx
mov ecx, dword [esi + 0x140]
mov edx, dword [eax]
push ecx
push str.CUSTOMBMP
push 0x42b368
push eax
call dword [edx + 0x3c]
mov ebx, eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4076c2
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4076c2
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4076c2
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x20]
mov eax, dword [edi + 0x10]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x48]
push ebx
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
push edi
mov ecx, esi
call fcn.0040af50
mov eax, dword [edi + 0x50]
mov ebp, 1
cmp eax, ebp
je 0x4076f0
mov dword [edi + 0x78], eax
push ebp
mov ecx, edi
call fcn.00407a90
mov ecx, dword [esi + 0x2370]
mov eax, dword [esi + 0x4c]
mov edx, dword [esi + 8]
add ecx, 0xc
test eax, eax
lea edi, [esi + 0x21f0]
je 0x40773d
test edx, edx
je 0x40773d
mov dword [edi + 0x4c], edx
mov dword [edi + 0x70], ecx
mov dword [edi + 0xc], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
mov dword [edi + 0x10], eax
je 0x40773d
mov eax, dword [edi + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [edi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov ax, word [esi + 0x1c5c]
mov dx, word [esi + 0x1c58]
mov word [edi + 0x48], dx
mov word [edi + 0x4a], ax
mov dword [esi + 0x21f8], 4
mov edx, dword [esi + 0x1f8]
mov eax, dword [esi + 0x48]
push 0
push 0
push edx
mov edx, dword [esi + 0x140]
mov ecx, dword [eax]
push edx
push str.CUSTOMBMP
push 0x42b368
push eax
call dword [ecx + 0x3c]
mov ebx, eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4077a0
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4077a0
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4077a0
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x20]
mov eax, dword [edi + 0x10]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x48]
push ebx
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
push edi
mov ecx, esi
call fcn.0040af50
mov ecx, dword [esi + 0x2370]
mov eax, dword [esi + 0x4c]
mov edx, dword [esi + 8]
add ecx, 0xd
test eax, eax
lea edi, [esi + 0x2270]
je 0x407804
test edx, edx
je 0x407804
mov dword [edi + 0x4c], edx
mov dword [edi + 0x70], ecx
mov dword [edi + 0xc], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
mov dword [edi + 0x10], eax
je 0x407804
mov eax, dword [edi + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [edi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov ax, word [esi + 0x1c64]
mov dx, word [esi + 0x1c60]
mov word [edi + 0x48], dx
mov word [edi + 0x4a], ax
mov dword [esi + 0x2278], 4
mov edx, dword [esi + 0x19cc]
mov eax, dword [esi + 0x48]
push 0
push 0
push edx
mov edx, dword [esi + 0x140]
mov ecx, dword [eax]
push edx
push str.CUSTOMBMP
push 0x42b368
push eax
call dword [ecx + 0x3c]
mov ebx, eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x407867
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x407867
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x407867
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x20]
mov eax, dword [edi + 0x10]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x48]
push ebx
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
push edi
mov ecx, esi
call fcn.0040af50
mov eax, dword [edi + 0x50]
cmp eax, ebp
jne 0x4078c6
cmp dword [edi + 8], ebp
jbe 0x4078d1
push ebp
mov ecx, edi
mov dword [edi + 0x50], ebp
call fcn.00406c50
test eax, eax
jbe 0x4078b6
push ebp
mov ecx, edi
call fcn.00406c50
dec eax
mov ecx, edi
mov dword [edi + 0x2c], eax
call fcn.00406940
jmp 0x4078d1
mov ecx, edi
mov dword [edi + 0x2c], 0
call fcn.00406940
jmp 0x4078d1
push ebp
mov ecx, edi
mov dword [edi + 0x78], eax
call fcn.00407a90
mov ecx, dword [esi + 0x2370]
mov eax, dword [esi + 0x4c]
mov edx, dword [esi + 8]
add ecx, 0xe
test eax, eax
lea edi, [esi + 0x22f0]
je 0x407916
test edx, edx
je 0x407916
mov dword [edi + 0x4c], edx
mov dword [edi + 0x70], ecx
mov dword [edi + 0xc], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
mov dword [edi + 0x10], eax
je 0x407916
mov eax, dword [edi + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [edi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov ax, word [esi + 0x1c6c]
mov dx, word [esi + 0x1c68]
mov word [edi + 0x48], dx
mov word [edi + 0x4a], ax
mov dword [esi + 0x22f8], 4
mov edx, dword [esi + 0x19c8]
mov eax, dword [esi + 0x48]
push 0
push 0
push edx
mov edx, dword [esi + 0x140]
mov ecx, dword [eax]
push edx
push str.CUSTOMBMP
push 0x42b368
push eax
call dword [ecx + 0x3c]
mov ebx, eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x407979
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x407979
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x407979
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x20]
mov eax, dword [edi + 0x10]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x48]
push ebx
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
push edi
mov ecx, esi
call fcn.0040af50
xor ebx, ebx
mov ecx, dword [esi + 0x2370]
mov eax, dword [esi + 0x4c]
mov edi, ebx
shl edi, 7
lea edx, [ecx + ebx + 5]
mov ecx, dword [esi + 8]
lea ebp, [edi + esi]
test eax, eax
lea edi, [ebp + 0x1ef0]
je 0x4079e8
test ecx, ecx
je 0x4079e8
mov dword [edi + 0x4c], ecx
mov dword [edi + 0x70], edx
mov dword [edi + 0xc], eax
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
test eax, eax
mov dword [edi + 0x10], eax
je 0x4079e8
mov eax, dword [edi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [edi + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 4]
mov ax, word [esi + ebx*8 + 0x1bfc]
mov cx, word [esi + ebx*8 + 0x1bf8]
mov word [edi + 0x48], cx
mov word [edi + 0x4a], ax
mov dword [ebp + 0x1ef8], 4
mov ecx, dword [esi + ebx*4 + 0x200]
mov eax, dword [esi + 0x48]
push 0
push 0
push ecx
mov ecx, dword [esi + 0x140]
mov edx, dword [eax]
push ecx
push str.CUSTOMBMP
push 0x42b368
push eax
call dword [edx + 0x3c]
mov ebp, eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x407a4e
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x407a4e
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x407a4e
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x20]
mov eax, dword [edi + 0x10]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x48]
push ebp
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
cmp ebx, 1
jne 0x407a74
mov dword [esi + 0x1fe4], 0
push edi
mov ecx, esi
call fcn.0040af50
inc ebx
cmp ebx, 6
jl 0x40799a
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret