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

Disassembly:
mov ecx, dword [0x92978c]
sub esp, 0x790
push esi
xor esi, esi
xor edx, edx
cmp ecx, esi
push edi
jle 0x516e34
mov eax, 0x929b30
jmp 0x516e20
cmp dword [eax], 0xc
jne 0x516e26
inc edx
add eax, 0x54
dec ecx
jne 0x516e20
cmp edx, esi
jne 0x517780
mov ecx, 1
mov eax, 2
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
call fcn.00506c40
push str._league
lea ecx, [esp + 0x5c]
call fcn.00418c70
mov ecx, dword [esp + 0x79c]
lea eax, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.005b7360
add esp, 0xc
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x84f970
push str.playerstats
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.players
lea ecx, [esp + 0x58]
push str.teamplayerlinks
push ecx
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005bd530
mov ecx, eax
call fcn.005bd570
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x10]
call fcn.005bdce0
mov eax, dword [esp + 0x90]
lea edx, [esp + 0x80]
cmp eax, edx
je 0x516f0c
mov ecx, dword [0x9d9dcc]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x60]
cmp eax, ecx
mov dword [esp + 0x74], 0x84760c
je 0x516f2f
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0xc]
call fcn.005b6c70
mov dword [esp + 0x30], eax
lea eax, [esp + 0x38c]
mov ecx, 0xb
or edx, 0xffffffff
jmp 0x516f50
mov dword [eax - 8], edx
mov dword [eax - 4], edx
mov dword [eax], 8
add eax, 0xc
dec ecx
jne 0x516f50
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.005b6c70
cmp eax, 0xb
jle 0x517270
mov ecx, dword [esp + 0x14]
push str._form
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], str._form
mov dword [esp + 0x34], 0xffffffff
call fcn.004e6cb0
push 1
push 0x1e
push str.CAREER_TEAM_OF_THE_MONTH_TAKE_BEST_PROB
xor ebp, ebp
call fcn.00704c0b
mov ecx, eax
call fcn.00705466
lea ecx, [esp + 0x390]
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
jmp 0x516fd0
cmp ebp, dword [esp + 0x38]
jge 0x517270
mov ecx, dword [esp + 0x14]
push ebp
lea edx, [esp + 0xc4]
push edx
call fcn.005b6e00
push str.playerid
lea ecx, [esp + 0xc4]
call fcn.00419060
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x517029
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x517029
test esi, esi
je 0x517029
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x14]
push ebp
lea eax, [esp + 0xd4]
push eax
call fcn.005b6e00
push str.preferredposition1
lea ecx, [esp + 0xd4]
call fcn.00419060
push eax
call fcn.0051e970
mov edi, eax
mov eax, dword [esp + 0xe0]
add esp, 4
test eax, eax
mov dword [esp + 0x34], edi
je 0x517083
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x517083
test esi, esi
je 0x517083
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + edi*4 + 0x3c]
test eax, eax
je 0x51726a
call fcn.0060fae0
xor edx, edx
mov ecx, 0x64
div ecx
cmp dword [esp + 0x30], edx
jge 0x517263
mov ecx, dword [esp + 0x14]
push ebp
lea edx, [esp + 0xb4]
push edx
call fcn.005b6e00
push str.teamid
lea ecx, [esp + 0xb4]
call fcn.00419060
mov edi, eax
mov eax, dword [esp + 0xbc]
test eax, eax
je 0x5170f4
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5170f4
test esi, esi
je 0x5170f4
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
cmp edi, dword [esp + 0x7a8]
sete bl
test bl, bl
mov byte [esp + 0x1e], bl
je 0x51721c
mov ecx, dword [esp + 0x14]
push ebp
lea eax, [esp + 0xa4]
push eax
call fcn.005b6e00
push str.redcards
lea ecx, [esp + 0xa4]
call fcn.00419060
test eax, eax
mov eax, dword [esp + 0xac]
setg byte [esp + 0x13]
test eax, eax
je 0x51715c
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x51715c
test esi, esi
je 0x51715c
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
push ebp
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.005b6e00
push str.injurydaysout
lea ecx, [esp + 0x80]
call fcn.00419060
test eax, eax
mov eax, dword [esp + 0x88]
setg byte [esp + 0x1f]
test eax, eax
je 0x5171ae
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5171ae
test esi, esi
je 0x5171ae
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x14]
push ebp
lea edx, [esp + 0x64]
push edx
call fcn.005b6e00
push str.position
lea ecx, [esp + 0x64]
call fcn.00419060
cmp eax, 0x20
mov eax, dword [esp + 0x6c]
setl bl
test eax, eax
je 0x5171f6
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5171f6
test esi, esi
je 0x5171f6
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov edx, dword [esp + 0x24]
mov cl, byte [esp + 0x13]
cmp edx, 3
setge al
test cl, cl
jne 0x517263
mov cl, byte [esp + 0x1f]
test cl, cl
jne 0x517263
test bl, bl
je 0x517263
test al, al
jne 0x517263
mov bl, byte [esp + 0x1e]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + ecx*4 + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
dec eax
mov dword [esp + ecx*4 + 0x3c], eax
mov eax, dword [esp + 0x18]
mov dword [eax - 4], edx
mov dword [eax], edi
mov dword [eax + 4], ecx
add eax, 0xc
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x7ac]
push edx
inc esi
push eax
mov dword [esp + 0x2c], esi
call fcn.0046dff0
add esp, 0xc
test bl, bl
je 0x517263
inc dword [esp + 0x24]
cmp dword [esp + 0x20], 0xb
je 0x517270
inc ebp
jmp 0x516fd0
push 0x4a31b0
push 0xc
lea ecx, [esp + 0x394]
push 0xb
push ecx
call fcn.0081db70
add esp, 0x10
lea eax, [esp + 0x418]
mov ecx, 0xc
mov edx, 0x3f
xor esi, esi
lea esp, [esp]
mov dword [eax - 8], esi
mov dword [eax + 0x40], eax
mov dword [eax - 4], edx
mov byte [eax], 0
add eax, 0x4c
dec ecx
jne 0x5172a0
mov edx, dword [esp + 0x7a4]
push edx
lea eax, [esp + 0x130]
push eax
call fcn.004938e0
add esp, 8
push eax
lea ecx, [esp + 0xe4]
call fcn.004a8150
lea ecx, [esp + 0xe0]
push ecx
lea ecx, [esp + 0x414]
call fcn.00418ba0
mov eax, dword [esp + 0x128]
lea edx, [esp + 0xe8]
cmp eax, edx
je 0x517306
push eax
call fcn.0079a005
add esp, 4
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x134]
cmp eax, ecx
je 0x517321
push eax
call fcn.0079a005
add esp, 4
mov byte [esp + 0x13], 0
call fcn.0060fae0
xor edx, edx
mov ecx, 3
div ecx
add edx, 0x3271
push edx
lea edx, [esp + 0x17c]
push edx
call fcn.004912e0
mov ecx, eax
call fcn.00491830
push 1
push 3
push str.CAREER_TEAM_OF_THE_MONTH_MORALE_BOOST
call fcn.00704c0b
mov ecx, eax
call fcn.00705466
mov ebx, eax
mov eax, dword [esp + 0x20]
cmp eax, esi
jle 0x51762f
lea edi, [esp + 0x38c]
lea ebp, [esp + 0x45c]
mov dword [esp + 0x18], eax
mov esi, dword [edi]
lea ecx, [esp + 0x2f4]
push esi
push ecx
call fcn.004965c0
add esp, 8
push eax
lea ecx, [esp + 0x260]
call fcn.004a8150
lea edx, [esp + 0x25c]
push edx
mov ecx, ebp
call fcn.00418ba0
mov eax, dword [esp + 0x2a4]
lea ecx, [esp + 0x264]
cmp eax, ecx
je 0x5173ce
push eax
call fcn.0079a005
add esp, 4
mov eax, dword [esp + 0x33c]
lea edx, [esp + 0x2fc]
cmp eax, edx
je 0x5173e9
push eax
call fcn.0079a005
add esp, 4
mov eax, dword [esp + 0x7a8]
cmp dword [edi + 4], eax
jne 0x51761a
mov ecx, dword [edi]
push ecx
lea edx, [esp + 0x1c8]
push edx
mov byte [esp + 0x1b], 1
call fcn.004965c0
add esp, 8
push eax
lea eax, [esp + 0x17c]
push eax
push str.01_n
lea ecx, [esp + 0x34c]
call fcn.00409ef0
push eax
lea ecx, [esp + 0x2b4]
push ecx
call fcn.0045d310
add esp, 0x10
push eax
lea ecx, [esp + 0x130]
call fcn.004a8150
lea edx, [esp + 0x12c]
push edx
lea ecx, [esp + 0x17c]
call fcn.00418ba0
mov eax, dword [esp + 0x174]
lea ecx, [esp + 0x134]
cmp eax, ecx
je 0x517478
push eax
call fcn.0079a005
add esp, 4
mov eax, dword [esp + 0x2f0]
lea edx, [esp + 0x2b0]
cmp eax, edx
je 0x517493
push eax
call fcn.0079a005
add esp, 4
mov eax, dword [esp + 0x388]
lea ecx, [esp + 0x348]
cmp eax, ecx
je 0x5174ae
push eax
call fcn.0079a005
add esp, 4
mov eax, dword [esp + 0x20c]
lea edx, [esp + 0x1cc]
cmp eax, edx
je 0x5174c9
push eax
call fcn.0079a005
add esp, 4
push str.morale
lea ecx, [esp + 0x80]
call fcn.00418c70
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xe4]
call fcn.005b7e80
push str.playerid
lea ecx, [esp + 0x64]
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], 0
mov dword [esp + 0xe4], 0x850ffc
call fcn.00418c70
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
lea ecx, [esp + 0x104]
push ecx
push esi
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.005b7360
add esp, 0xc
push eax
lea ecx, [esp + 0x54]
push str.playerstats
push ecx
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdac0
lea ecx, [esp + 0x28]
call fcn.005bdce0
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x48]
cmp eax, edx
je 0x5175aa
mov ecx, dword [0x9d9dcc]
mov ecx, dword [ecx + 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 + 0x3c], 0x84760c
je 0x5175cd
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0xfc]
lea ecx, [esp + 0xec]
cmp eax, ecx
je 0x5175ee
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x84]
cmp eax, ecx
mov dword [esp + 0xe0], 0x84f900
je 0x51761a
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x18]
add ebp, 0x4c
add edi, 0xc
dec eax
mov dword [esp + 0x18], eax
jne 0x517384
lea eax, [esp + 0x410]
push eax
lea ecx, [esp + 0x1c8]
push 0x3270
push ecx
call fcn.004912e0
mov ecx, eax
call fcn.00491830
push eax
lea edx, [esp + 0x218]
push 0xc
push edx
call fcn.004675c0
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x1dc]
add esp, 0x10
cmp eax, ecx
je 0x51767e
push eax
call fcn.0079a005
add esp, 4
push 0xffffffffffffffff
lea edx, [esp + 0x214]
push 8
push edx
call fcn.004ab5d0
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
je 0x5176ae
push 0xffffffffffffffff
lea eax, [esp + 0x17c]
push 8
push eax
call fcn.004ab5d0
add esp, 0xc
mov eax, dword [0x929798]
xor ebx, ebx
cmp eax, ebx
je 0x5176c8
mov ecx, dword [0x9d9dcc]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x258]
lea ecx, [esp + 0x218]
cmp eax, ecx
mov dword [0x929798], ebx
mov dword [0x92979c], ebx
je 0x5176ef
push eax
call fcn.0079a005
add esp, 4
mov eax, dword [esp + 0x1c0]
lea edx, [esp + 0x180]
cmp eax, edx
je 0x51770a
push eax
call fcn.0079a005
add esp, 4
lea esi, [esp + 0x7e8]
mov edi, 0xc
mov eax, dword [esi - 0x4c]
sub esi, 0x4c
lea ecx, [esi - 0x40]
cmp eax, ecx
je 0x51772c
push eax
call fcn.0079a005
add esp, 4
dec edi
jne 0x517716
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x51777e
dec dword [eax]
cmp dword [eax], ebx
mov edi, eax
jne 0x51777e
cmp edi, ebx
je 0x51777e
mov esi, dword [edi + 0x5c]
cmp esi, ebx
je 0x517762
dec dword [esi]
jne 0x517762
cmp esi, ebx
je 0x517762
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 0x517775
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x790
ret