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

Disassembly:
sub esp, 0x1f8
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push str.team_lookup
push ecx
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x14]
call fcn.005bdce0
xor esi, esi
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x14], esi
call fcn.004d23f0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x4c]
mov dword [esp + 0x10], esi
mov esi, dword [eax + 0x58]
lea edi, [esi + edx*4]
lea edx, [eax + 0x5c]
push edx
mov edx, dword [eax + 4]
push edx
mov ecx, esi
mov ebp, eax
push ecx
add eax, 8
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
call fcn.005b86b0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
nop
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
lea edx, [eax + 0x5c]
push edx
mov edx, dword [eax + 4]
lea esi, [edi + ecx*4]
push edx
mov ecx, esi
mov ebp, eax
push ecx
add eax, 8
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0xb0], edi
mov dword [esp + 0xb4], esi
call fcn.005b86b0
mov edx, dword [esp + 0x38]
mov eax, esi
cmp edx, eax
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x88]
setne bl
test eax, eax
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], esi
je 0x4d9af7
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x4d9af7
test esi, esi
je 0x4d9af7
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
test bl, bl
je 0x4d9fec
cmp dword [esp + 0x10], 0x12c
jle 0x4d9b1b
push 0
call fcn.0079b11b
add esp, 4
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
inc ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], ebx
call fcn.005b84a0
push str.rtsgt
lea ecx, [esp + 0x28]
call fcn.00419060
mov edx, dword [esp + 0x38]
mov esi, eax
mov edi, esi
shr edi, 0x18
mov ecx, esi
and ecx, 0xf00000
shl edi, 0x18
or edi, ecx
push edx
lea ecx, [esp + 0x28]
call fcn.005b84a0
push str.team_id
lea ecx, [esp + 0x28]
call fcn.00419060
mov ebp, eax
cmp edi, dword [esp + 0x20]
je 0x4d9d89
push str.asset_id
lea ecx, [esp + 0x11c]
call fcn.00418c70
push str.tournament_type
lea ecx, [esp + 0xac]
call fcn.00418c70
push str.rtsg
lea ecx, [esp + 0xc8]
call fcn.00418c70
push 0x55
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x1c8]
push ecx
call fcn.005b74b0
add esp, 0xc
push eax
push 1
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x1f0]
push eax
call fcn.005b7360
add esp, 0xc
push eax
and esi, 0xffffff00
push esi
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x188]
push edx
call fcn.005b7360
add esp, 0xc
push eax
lea eax, [esp + 0x50]
push eax
call fcn.005b7fa0
add esp, 0xc
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.005b7fa0
add esp, 0xc
push eax
lea edx, [esp + 0x54]
push str.rtsg
push edx
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bc6d0
lea ecx, [esp + 0x50]
mov dword [esp + 0x14], eax
call fcn.005bdce0
mov ecx, dword [esp + 0x68]
test ecx, ecx
mov esi, 0x8477e8
mov dword [esp + 0x60], esi
je 0x4d9c6a
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x4d9c79
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x4c]
test ecx, ecx
mov ebx, 0x84760c
mov dword [esp + 0x60], ebx
mov dword [esp + 0x44], esi
je 0x4d9c95
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x4d9ca4
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov eax, dword [esp + 0x194]
lea ecx, [esp + 0x184]
cmp eax, ecx
mov dword [esp + 0x44], ebx
je 0x4d9cc9
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0xdc]
lea ecx, [esp + 0xcc]
cmp eax, ecx
mov dword [esp + 0x178], ebx
je 0x4d9cf1
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x200]
lea ecx, [esp + 0x1f0]
cmp eax, ecx
je 0x4d9d12
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0xb0]
cmp eax, ecx
mov dword [esp + 0x1e4], ebx
je 0x4d9d3a
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x1dc]
lea ecx, [esp + 0x1cc]
cmp eax, ecx
je 0x4d9d5b
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x130]
lea ecx, [esp + 0x120]
cmp eax, ecx
mov dword [esp + 0x1c0], ebx
je 0x4d9d83
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov dword [esp + 0x20], edi
jmp 0x4d9d8e
mov ebx, 0x84760c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4d9fd5
cmp dword [esp + 0x5c], edi
je 0x4d9fd5
cmp ebp, 0xffffffff
je 0x4d9fd5
push str.teamid
lea ecx, [esp + 0x100]
call fcn.00418c70
lea eax, [esp + 0x18]
push eax
push ebp
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x1a8]
push edx
call fcn.005b7360
add esp, 0xc
push eax
lea eax, [esp + 0x60]
push str.teams
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 + 0x58]
call fcn.005bdce0
mov eax, dword [esp + 0x1b8]
lea ecx, [esp + 0x1a8]
cmp eax, ecx
je 0x4d9e2b
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x114]
lea ecx, [esp + 0x104]
cmp eax, ecx
mov dword [esp + 0x19c], ebx
je 0x4d9e53
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x18]
call fcn.005b6c70
test eax, eax
jle 0x4d9fc7
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x70]
push eax
call fcn.005b6e00
push str.overallrating
lea ecx, [esp + 0x70]
call fcn.00419060
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x78]
sar edi, 1
test eax, eax
je 0x4d9eae
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x4d9eae
test esi, esi
je 0x4d9eae
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
call fcn.0060fae0
xor edx, edx
mov ecx, 5
div ecx
push str.num_wins
lea ecx, [esp + 0xe4]
mov esi, edx
add esi, edi
call fcn.00418c70
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0x138]
call fcn.005b7e80
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x174], esi
mov dword [esp + 0x178], 0
mov dword [esp + 0x138], 0x84f9cc
call fcn.005b84a0
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
lea ecx, [esp + 0x158]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x80]
push str.team_lookup
push eax
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005b8a00
mov ecx, eax
call fcn.005bdac0
lea ecx, [esp + 0x54]
call fcn.005bdce0
mov eax, dword [esp + 0x150]
lea ecx, [esp + 0x140]
cmp eax, ecx
je 0x4d9f9b
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0xf8]
lea ecx, [esp + 0xe8]
cmp eax, ecx
mov dword [esp + 0x134], 0x84f900
je 0x4d9fc7
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4d9fd5
push ecx
call fcn.00418f80
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x38]
lea eax, [edx + ecx*4]
mov dword [esp + 0x38], eax
jmp 0x4d9a70
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4da011
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x4da011
test esi, esi
je 0x4da011
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4da061
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x4da061
test edi, edi
je 0x4da061
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x4da045
dec dword [esi]
jne 0x4da045
test esi, esi
je 0x4da045
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 0x4da058
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f8
ret