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

Disassembly:
sub esp, 0x108
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], 0xffffffff
call fcn.004a7cc0
mov esi, dword [eax + 0xc]
push str.game_number
lea ecx, [esp + 0x44]
call fcn.00418c70
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.005b74e0
add esp, 0xc
push eax
lea eax, [esp + 0x20]
push str.fixtures
push eax
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x18]
call fcn.005bdce0
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x68]
cmp eax, ecx
je 0x4bb0ee
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x48]
cmp eax, ecx
mov dword [esp + 0x5c], 0x84760c
je 0x4bb111
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
call fcn.005b6c70
test eax, eax
jle 0x4bb721
push ebx
jmp 0x4bb130
mov ebp, dword [esp + 0x10]
lea ecx, [ecx]
mov ecx, dword [esp + 0x14]
push ebp
lea eax, [esp + 0x34]
push eax
call fcn.005b6e00
push str.rtsg
lea ecx, [esp + 0x34]
call fcn.00419060
mov ebx, eax
mov eax, dword [esp + 0x3c]
test eax, eax
mov dword [esp + 0x1c], ebx
je 0x4bb178
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x4bb178
test esi, esi
je 0x4bb178
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
push ebp
lea ecx, [esp + 0x10c]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.005b6e00
push str.home
lea ecx, [esp + 0x10c]
call fcn.00419060
mov edi, eax
mov eax, dword [esp + 0x114]
test eax, eax
je 0x4bb1c5
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x4bb1c5
test esi, esi
je 0x4bb1c5
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x14]
push ebp
lea edx, [esp + 0xec]
push edx
call fcn.005b6e00
push str.away
lea ecx, [esp + 0xec]
call fcn.00419060
mov esi, eax
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x4bb212
dec dword [eax]
cmp dword [eax], 0
mov ebp, eax
jne 0x4bb212
test ebp, ebp
je 0x4bb212
mov ecx, ebp
call fcn.005b0ba0
push ebp
call fcn.005b3b10
add esp, 4
push str.rtsgt
lea ecx, [esp + 0x88]
or esi, ebx
call fcn.00418c70
lea eax, [esp + 0x28]
push eax
or edi, ebx
push edi
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0xd0]
push edx
call fcn.005b7360
add esp, 0xc
push eax
lea eax, [esp + 0x48]
push str.team_lookup
push eax
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x40]
call fcn.005bdce0
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0xd0]
cmp eax, ecx
je 0x4bb294
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0x8c]
cmp eax, ecx
mov edi, 0x84760c
mov dword [esp + 0xc4], edi
je 0x4bb2c1
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
push str.rtsgt
lea ecx, [esp + 0x64]
call fcn.00418c70
lea eax, [esp + 0x24]
push eax
push esi
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0xac]
push edx
call fcn.005b7360
add esp, 0xc
push eax
lea eax, [esp + 0x28]
push str.team_lookup
push eax
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x20]
call fcn.005bdce0
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xac]
cmp eax, ecx
je 0x4bb339
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x68]
cmp eax, ecx
mov dword [esp + 0xa0], edi
je 0x4bb35b
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x28]
push 0
lea eax, [esp + 0xfc]
push eax
call fcn.005b6e00
push str.team_id
lea ecx, [esp + 0xfc]
call fcn.00419060
mov ebp, eax
mov eax, dword [esp + 0x104]
test eax, eax
je 0x4bb3a9
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x4bb3a9
test esi, esi
je 0x4bb3a9
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
push 0
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.005b6e00
push str.team_id
lea ecx, [esp + 0x48]
call fcn.00419060
mov edi, eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4bb3ee
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x4bb3ee
test esi, esi
je 0x4bb3ee
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x11c]
cmp ebp, eax
je 0x4bb438
cmp edi, eax
je 0x4bb438
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4bb40b
push ecx
call fcn.00418f80
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4bb419
push ecx
call fcn.00418f80
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc esi
mov dword [esp + 0x10], esi
call fcn.005b6c70
cmp esi, eax
jl 0x4bb129
jmp 0x4bb720
test ebx, 0xf0000
jne 0x4bb680
mov eax, dword [esp + 0x1c]
mov esi, eax
shr esi, 0x18
and eax, 0xf00000
shl esi, 0x18
push str.rtsg
lea ecx, [esp + 0x88]
or esi, eax
call fcn.00418c70
push str.rtsg
lea ecx, [esp + 0x64]
call fcn.00418c70
mov eax, esi
shr eax, 0x18
mov ecx, esi
and ecx, 0xf00000
shl eax, 0x18
lea edx, [esp + 0x10]
push edx
add ecx, 0x100000
or eax, ecx
push eax
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0xd0]
push eax
call fcn.005b7540
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0xb0]
push edx
call fcn.005b7510
add esp, 0xc
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.005b7fa0
add esp, 0xc
push eax
lea ecx, [esp + 0x28]
push str.rtsg
push ecx
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x20]
call fcn.005bdce0
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov dword [esp + 0x30], 0x8477e8
je 0x4bb516
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4bb525
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xac]
cmp eax, ecx
mov esi, 0x84760c
mov dword [esp + 0x30], esi
je 0x4bb54f
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x68]
cmp eax, ecx
mov dword [esp + 0xa0], esi
je 0x4bb571
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0xd0]
cmp eax, ecx
je 0x4bb592
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0x8c]
cmp eax, ecx
mov dword [esp + 0xc4], esi
je 0x4bb5ba
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
call fcn.005b6c70
test eax, eax
jle 0x4bb5f6
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x34], 1
call fcn.005b6e00
push str.tournament_type
lea ecx, [esp + 0x48]
call fcn.00419060
cmp eax, 1
je 0x4bb5f6
mov bl, 1
jmp 0x4bb5f8
xor bl, bl
test byte [esp + 0x2c], 1
je 0x4bb624
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4bb624
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x4bb624
test esi, esi
je 0x4bb624
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
test bl, bl
je 0x4bb630
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4bb680
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x4bb680
test edi, edi
je 0x4bb680
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x4bb664
dec dword [esi]
jne 0x4bb664
test esi, esi
je 0x4bb664
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [edi + 0x58]
lea edx, [edi + 0x54]
cmp eax, edx
je 0x4bb677
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4bb6d0
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x4bb6d0
test edi, edi
je 0x4bb6d0
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x4bb6b4
dec dword [esi]
jne 0x4bb6b4
test esi, esi
je 0x4bb6b4
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [edi + 0x58]
lea ecx, [edi + 0x54]
cmp eax, ecx
je 0x4bb6c7
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4bb720
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x4bb720
test edi, edi
je 0x4bb720
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x4bb704
dec dword [esi]
jne 0x4bb704
test esi, esi
je 0x4bb704
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [edi + 0x58]
lea edx, [edi + 0x54]
cmp eax, edx
je 0x4bb717
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
pop ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4bb771
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x4bb771
test esi, esi
je 0x4bb771
mov edi, dword [esi + 0x5c]
test edi, edi
je 0x4bb755
dec dword [edi]
jne 0x4bb755
test edi, edi
je 0x4bb755
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esi + 0x58]
lea ecx, [esi + 0x54]
cmp eax, ecx
je 0x4bb768
push eax
call fcn.005b3b10
add esp, 4
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
add esp, 0x108
ret