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

Disassembly:
push 0xffffffffffffffff
push 0x77537b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push ebp
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
lea eax, [esi + 0xc3c]
xor ebx, ebx
mov dword [esp + 0x54], str.gemRed.p3d
mov dword [esp + 0x58], str.gemWhite.p3d
mov dword [esp + 0x5c], str.gemGreen.p3d
mov dword [esp + 0x60], str.gemYellow.p3d
mov dword [esp + 0x64], str.gemPurple.p3d
mov dword [esp + 0x68], str.gemOrange.p3d
mov dword [esp + 0x6c], str.gemBlue.p3d
xor edi, edi
mov dword [esp + 0x18], eax
mov ebp, dword [esp + edi*4 + 0x54]
mov eax, ebp
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea ecx, [eax + 1]
jmp 0x7492b0
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x7492b0
sub eax, ecx
push eax
push ebp
lea ecx, [esp + 0x40]
call fcn.004016e0
mov eax, dword [esp + 0x18]
mov dword [esp + 0xa0], ebx
mov eax, dword [eax]
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x68]
push eax
lea eax, [esp + 0x3c]
push eax
call edx
cmp eax, ebx
mov ebp, 0x10
sete byte [esp + 0x17]
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + edi*4 + 0x7c], eax
cmp dword [esp + 0x50], ebp
jb 0x74930f
mov eax, dword [esp + 0x3c]
push eax
call fcn.006441c7
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x74941d
add dword [esp + 0x18], 4
inc edi
cmp edi, 7
jl 0x749292
push 9
mov edi, 0xf
push 0x80f828
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004016e0
mov dword [esp + 0xa0], 3
mov eax, dword [esi + 0xc74]
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x68]
push eax
lea eax, [esp + 0x20]
push eax
call edx
cmp eax, ebx
mov ebp, 0x10
sete byte [esp + 0x17]
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0x78], eax
cmp dword [esp + 0x34], ebp
jb 0x749398
mov eax, dword [esp + 0x20]
push eax
call fcn.006441c7
add esp, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x1c]
cmp byte [esp + 0x17], bl
je 0x7494ce
push 5
push 0x80f834
call fcn.004016e0
mov dword [esp + 0xa0], 4
push 9
push str.board.p3d
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.004016e0
mov byte [esp + 0xa0], 5
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call edx
cmp dword [esp + 0x50], ebp
jb 0x749414
mov eax, dword [esp + 0x3c]
push eax
call fcn.006441c7
add esp, 4
mov dword [esp + 0x50], edi
jmp 0x7494ac
push 5
push 0x80f820
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004016e0
mov dword [esp + 0xa0], 1
mov edi, dword [esp + edi*4 + 0x54]
mov eax, edi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x749461
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x40]
call fcn.004016e0
push ebx
lea eax, [esp + 0x20]
mov byte [esp + 0xa4], 2
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call edx
cmp dword [esp + 0x50], ebp
jb 0x7494a4
mov eax, dword [esp + 0x3c]
push eax
call fcn.006441c7
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x34], ebp
jb 0x7494c7
mov ecx, dword [esp + 0x20]
push ecx
call fcn.006441c7
add esp, 4
xor al, al
jmp 0x74977a
push 0xc
push 0x80f848
call fcn.004016e0
mov dword [esp + 0xa0], 6
mov eax, dword [esi + 0xc7c]
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x68]
push eax
lea eax, [esp + 0x20]
push eax
call edx
cmp eax, ebx
sete byte [esp + 0x17]
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0x74], eax
cmp dword [esp + 0x34], ebp
jb 0x749524
mov eax, dword [esp + 0x20]
push eax
call fcn.006441c7
add esp, 4
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x1c]
cmp byte [esp + 0x17], bl
je 0x74957a
push 5
push 0x80f858
call fcn.004016e0
mov dword [esp + 0xa0], 7
push 0xc
push str.warptube.p3d
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.004016e0
mov byte [esp + 0xa0], 8
jmp 0x7493ed
push ebp
push 0x80f870
call fcn.004016e0
mov dword [esp + 0xa0], 9
mov eax, dword [esi + 0xc84]
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x68]
push eax
lea eax, [esp + 0x20]
push eax
call edx
cmp eax, ebx
sete byte [esp + 0x17]
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0x70], eax
cmp dword [esp + 0x34], ebp
jb 0x7495cf
mov eax, dword [esp + 0x20]
push eax
call fcn.006441c7
add esp, 4
cmp byte [esp + 0x17], bl
je 0x749689
push 5
push str.Fail_
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
call fcn.004016e0
mov dword [esp + 0xa0], 0xa
push ebp
push str.warptube_cap.p3d
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.004016e0
push ebx
lea eax, [esp + 0x80]
mov byte [esp + 0xa4], 0xb
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, esi
call edx
cmp dword [esp + 0x6c], ebp
jb 0x749659
mov eax, dword [esp + 0x58]
push eax
call fcn.006441c7
add esp, 4
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
cmp dword [esp + 0x94], ebp
jb 0x7494c7
mov ecx, dword [esp + 0x80]
push ecx
call fcn.006441c7
add esp, 4
xor al, al
jmp 0x74977a
mov dword [esp + 0x18], ebx
lea edi, [esi + 0xc58]
mov eax, dword [edi]
cmp eax, ebx
je 0x7496b9
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x70]
call eax
mov ebp, dword [edi]
cmp ebp, ebx
je 0x7496b9
push ebp
call fcn.00544860
push ebp
call fcn.006441c7
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + eax*4 + 0x7c]
inc eax
mov dword [edi], ecx
add edi, 4
cmp eax, 7
mov dword [esp + 0x18], eax
jl 0x749693
mov eax, dword [esi + 0xc78]
cmp eax, ebx
je 0x7496fe
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x70]
call eax
mov edi, dword [esi + 0xc78]
cmp edi, ebx
je 0x7496fe
push edi
call fcn.00544860
push edi
call fcn.006441c7
add esp, 4
mov eax, dword [esi + 0xc80]
mov ecx, dword [esp + 0x78]
mov dword [esi + 0xc78], ecx
cmp eax, ebx
je 0x749736
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x70]
call eax
mov edi, dword [esi + 0xc80]
cmp edi, ebx
je 0x749736
push edi
call fcn.00544860
push edi
call fcn.006441c7
add esp, 4
mov eax, dword [esi + 0xc88]
mov ecx, dword [esp + 0x74]
mov dword [esi + 0xc80], ecx
cmp eax, ebx
je 0x74976e
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x70]
call eax
mov edi, dword [esi + 0xc88]
cmp edi, ebx
je 0x74976e
push edi
call fcn.00544860
push edi
call fcn.006441c7
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword [esi + 0xc88], ecx
mov al, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x94
ret