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

Disassembly:
sub esp, 0x2cc
push ebx
push esi
push edi
call fcn.004a3030
push str.teamid
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00418c70
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.005b7360
add esp, 0xc
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.career_team_prestige
lea eax, [esp + 0x34]
push str.teams
push eax
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005bd570
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0xc]
call fcn.005bdce0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x5273a4
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x30], 0x84760c
je 0x5273c7
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 edi, 4
call fcn.005b6c70
test eax, eax
jle 0x527421
mov ecx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x18]
push eax
call fcn.005b6e00
push str._internationalprestige
lea ecx, [esp + 0x18]
call fcn.00419060
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x20]
sar edi, 1
cmp eax, ebx
je 0x527421
dec dword [eax]
cmp dword [eax], ebx
mov esi, eax
jne 0x527421
cmp esi, ebx
je 0x527421
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
xor esi, esi
call fcn.0060fae0
and eax, 1
lea eax, [eax + edi - 1]
cmp eax, 9
jl 0x527439
mov eax, 9
xor ecx, ecx
cmp eax, ebx
setl cl
dec ecx
and ecx, eax
mov dword [esp + esi*4 + 0x30], ecx
inc esi
cmp esi, 7
jl 0x527423
mov edx, dword [str.upgrade_med]
push edx
lea ecx, [esp + 0x58]
call fcn.00418c70
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x298]
call fcn.005b7e80
mov ecx, dword [esp + 0x48]
mov edx, dword [str.upgrade_sct]
mov dword [esp + 0x2d0], ecx
mov esi, 0x84f9cc
push edx
lea ecx, [esp + 0x74]
mov dword [esp + 0x2d8], ebx
mov dword [esp + 0x298], esi
call fcn.00418c70
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x210]
call fcn.005b7e80
mov ecx, dword [esp + 0x44]
mov edx, dword [str.upgrade_fin]
mov dword [esp + 0x248], ecx
push edx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x250], ebx
mov dword [esp + 0x210], esi
call fcn.00418c70
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x188]
call fcn.005b7e80
mov ecx, dword [esp + 0x40]
mov edx, dword [str.upgrade_gk]
mov dword [esp + 0x1c0], ecx
push edx
lea ecx, [esp + 0x90]
mov dword [esp + 0x1c8], ebx
mov dword [esp + 0x188], esi
call fcn.00418c70
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x144]
call fcn.005b7e80
mov ecx, dword [esp + 0x3c]
mov edx, dword [str.upgrade_def]
mov dword [esp + 0x17c], ecx
push edx
lea ecx, [esp + 0xe4]
mov dword [esp + 0x184], ebx
mov dword [esp + 0x144], esi
call fcn.00418c70
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x1cc]
call fcn.005b7e80
mov ecx, dword [esp + 0x38]
mov edx, dword [str.upgrade_mid]
mov dword [esp + 0x204], ecx
push edx
lea ecx, [esp + 0xac]
mov dword [esp + 0x20c], ebx
mov dword [esp + 0x1cc], esi
call fcn.00418c70
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x254]
call fcn.005b7e80
mov ecx, dword [esp + 0x34]
mov edx, dword [str.upgrade_str]
mov dword [esp + 0x28c], ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x294], ebx
mov dword [esp + 0x254], esi
call fcn.00418c70
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x100]
call fcn.005b7e80
mov ecx, dword [esp + 0x30]
push 0x8c2138
push 0x8c2138
push 0x8c2138
lea edx, [esp + 0x2a0]
push edx
mov dword [esp + 0x148], ecx
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x198]
push ecx
lea edx, [esp + 0x158]
push edx
lea eax, [esp + 0x1e4]
push eax
lea ecx, [esp + 0x270]
push ecx
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x34]
push str.team_manager
push eax
mov dword [esp + 0x16c], ebx
mov dword [esp + 0x12c], esi
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005bdac0
lea ecx, [esp + 0xc]
call fcn.005bdce0
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x108]
cmp eax, ecx
je 0x52768e
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
cmp eax, ecx
mov esi, 0x84f900
mov dword [esp + 0xfc], esi
je 0x5276b5
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x26c]
lea ecx, [esp + 0x25c]
cmp eax, ecx
je 0x5276d6
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 + 0x250], esi
je 0x5276fe
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x1e4]
lea ecx, [esp + 0x1d4]
cmp eax, ecx
je 0x52771f
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 + 0x1c8], esi
je 0x527747
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x15c]
lea ecx, [esp + 0x14c]
cmp eax, ecx
je 0x527768
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x94]
cmp eax, ecx
mov dword [esp + 0x140], esi
je 0x527790
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x1a0]
lea ecx, [esp + 0x190]
cmp eax, ecx
je 0x5277b1
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 + 0x184], esi
je 0x5277d9
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x228]
lea ecx, [esp + 0x218]
cmp eax, ecx
je 0x5277fa
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x78]
cmp eax, ecx
mov dword [esp + 0x20c], esi
je 0x52781f
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x2b0]
lea ecx, [esp + 0x2a0]
cmp eax, ecx
je 0x527840
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x5c]
cmp eax, ecx
mov dword [esp + 0x294], esi
je 0x527862
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5278b1
dec dword [eax]
cmp dword [eax], ebx
mov edi, eax
jne 0x5278b1
cmp edi, ebx
je 0x5278b1
mov esi, dword [edi + 0x5c]
cmp esi, ebx
je 0x527895
dec dword [esi]
jne 0x527895
cmp esi, ebx
je 0x527895
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 0x5278a8
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x2cc
ret