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

Disassembly:
mov edx, ecx
sub esp, 0x378
push esi
mov esi, dword [edx + 0x120]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
xor eax, eax
push edi
mov ecx, 0x4f
lea edi, [esi + 8]
rep stosd dword es:[edi], eax
mov eax, dword [edx + 0x120]
mov ecx, dword [edx + 0x128]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x384]
mov eax, dword [edx + 0x120]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [edx + 0x128]
cmp eax, 7
ja case.default.0x565a68
jmp dword [eax*4 + 0x5663ec]
mov edx, dword [edx + 0x120]
mov eax, dword [0x9dab2c]
mov ecx, dword [eax + 8]
add edx, 8
mov dword [edx], ecx
xor esi, esi
lea edi, [edx + 4]
mov ecx, dword [0x9dab2c]
push 0x14
push esi
call fcn.00574180
push eax
push edi
call fcn.0081d420
add esp, 0xc
inc esi
add edi, 0x14
cmp esi, 8
jb 0x565a87
pop edi
pop esi
add esp, 0x378
ret 4
mov esi, dword [edx + 0x120]
push 0x8522f8
add esi, 8
call fcn.00484f20
push str.players
mov dword [esi], eax
call fcn.00484f20
mov ecx, dword [esi]
add esp, 8
sub eax, ecx
pop edi
mov dword [esi + 4], eax
pop esi
add esp, 0x378
ret 4
mov esi, dword [edx + 0x120]
mov edx, dword [0x8b0608]
push 0xffffffffffffffff
push 1
push 0
lea eax, [esp + 0x40]
add esi, 8
push eax
mov ecx, 0x8af738
mov dword [esi], edx
call fcn.00554870
mov ecx, dword [esp + 0x34]
imul ecx, ecx, 0x1c8
push 0x14
add ecx, 0x8af8d8
push ecx
add esi, 4
push esi
call fcn.0081d420
add esp, 0xc
pop edi
pop esi
add esp, 0x378
ret 4
mov esi, dword [edx + 0x120]
push str.manager_id
lea ecx, [esp + 0x154]
add esi, 8
call fcn.00418c70
lea edx, [esp + 8]
push edx
push 0
lea eax, [esp + 0x158]
push eax
lea ecx, [esp + 0x1f0]
push ecx
call fcn.005b7360
add esp, 0xc
push eax
lea edx, [esp + 0x2c]
push str.team_manager
push edx
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x24]
call fcn.005bdce0
lea ecx, [esp + 0x1e4]
call fcn.004a9690
mov eax, dword [esp + 0x168]
lea ecx, [esp + 0x158]
cmp eax, ecx
je 0x565bcb
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 8]
call fcn.005b6c70
test eax, eax
jle 0x565ccd
mov ecx, dword [esp + 8]
push 0
lea eax, [esp + 0x98]
push eax
call fcn.005b6e00
push str.firstname
lea ecx, [esp + 0x254]
push ecx
lea ecx, [esp + 0x9c]
call fcn.0047ad20
mov edx, dword [eax + 0x48]
push 0x10
push edx
push esi
call fcn.0081d420
mov eax, dword [esp + 0x2a4]
lea ecx, [esp + 0x264]
add esp, 0xc
cmp eax, ecx
je 0x565c32
push eax
call fcn.0079a005
add esp, 4
lea ecx, [esp + 0x94]
call fcn.00418cf0
mov ecx, dword [esp + 8]
push 0
lea edx, [esp + 0x78]
push edx
call fcn.005b6e00
push str.surname
lea eax, [esp + 0x2ec]
push eax
lea ecx, [esp + 0x7c]
call fcn.0047ad20
mov ecx, dword [eax + 0x48]
push 0x10
push ecx
lea edx, [esi + 0x10]
push edx
call fcn.0081d420
mov eax, dword [esp + 0x33c]
lea ecx, [esp + 0x2fc]
add esp, 0xc
cmp eax, ecx
je 0x565c91
push eax
call fcn.0079a005
add esp, 4
lea ecx, [esp + 0x74]
call fcn.00418cf0
mov ecx, dword [esp + 8]
push 0
lea edx, [esp + 0x138]
push edx
call fcn.005b6e00
push str.team_id
lea ecx, [esp + 0x138]
call fcn.00419060
lea ecx, [esp + 0x134]
mov dword [esi + 0x20], eax
call fcn.00418cf0
call fcn.004a7cc0
mov eax, dword [eax + 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.005c2d00
add esp, 8
lea ecx, [esp + 0x20]
call fcn.00493440
lea edx, [esp + 0x18]
push edx
mov dword [esi + 0x24], eax
lea eax, [esp + 0x30]
push str.team_manager_history
push eax
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005bdc80
push eax
lea ecx, [esp + 0xc]
call fcn.00457cc0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x565d29
push ecx
call fcn.00418f80
lea ecx, [esp + 0x2c]
call fcn.005bdce0
mov ecx, dword [esp + 8]
call fcn.005b6c70
test eax, eax
jle 0x56634d
lea edi, [eax - 1]
push edi
lea ecx, [esp + 0xe8]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.005b6e00
push str.num_wins
lea ecx, [esp + 0xe8]
call fcn.00419060
lea ecx, [esp + 0xe4]
mov dword [esi + 0x28], eax
call fcn.00418cf0
mov ecx, dword [esp + 8]
push edi
lea edx, [esp + 0x128]
push edx
call fcn.005b6e00
push str.num_draws
lea ecx, [esp + 0x128]
call fcn.00419060
lea ecx, [esp + 0x124]
mov dword [esi + 0x2c], eax
call fcn.00418cf0
mov ecx, dword [esp + 8]
push edi
lea eax, [esp + 0xb8]
push eax
call fcn.005b6e00
push str.num_losses
lea ecx, [esp + 0xb8]
call fcn.00419060
mov dword [esi + 0x30], eax
lea ecx, [esp + 0xb4]
jmp 0x566348
mov esi, dword [edx + 0x120]
add esi, 8
call fcn.004d23f0
push eax
lea ecx, [esp + 0x2a0]
push ecx
call fcn.004d2480
mov edx, dword [eax + 0x48]
push 0x20
push edx
push esi
call fcn.0081d420
mov eax, dword [esp + 0x2f8]
lea ecx, [esp + 0x2b8]
add esp, 0x14
cmp eax, ecx
je 0x565e22
push eax
call fcn.0079a005
add esp, 4
push ebx
push ebp
call fcn.004a7cc0
mov ebx, dword [eax + 8]
push str.rtsgt
lea ecx, [esp + 0x194]
mov dword [esp + 0x1c], ebx
call fcn.00418c70
push str.rtsgt
lea ecx, [esp + 0x1b0]
call fcn.00418c70
mov edi, ebx
shr edi, 0x18
and ebx, 0xf00000
lea edx, [esp + 0x10]
push edx
shl edi, 0x18
lea eax, [ebx + 0x100000]
or eax, edi
push eax
lea ecx, [esp + 0x198]
push ecx
lea edx, [esp + 0x1d4]
push edx
call fcn.005b7540
add esp, 0xc
push eax
or ebx, edi
push ebx
lea eax, [esp + 0x1b8]
push eax
lea ecx, [esp + 0x220]
push ecx
call fcn.005b7510
add esp, 0xc
push eax
lea edx, [esp + 0x158]
push edx
call fcn.005b7fa0
add esp, 0xc
push eax
lea eax, [esp + 0x1c]
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 + 0x14]
call fcn.005bdce0
lea ecx, [esp + 0x14c]
call fcn.00418b20
lea ecx, [esp + 0x210]
call fcn.004a9690
mov eax, dword [esp + 0x1c4]
lea ecx, [esp + 0x1b4]
cmp eax, ecx
je 0x565f1a
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
lea ecx, [esp + 0x1c8]
call fcn.004a9690
mov eax, dword [esp + 0x1a8]
lea ecx, [esp + 0x198]
cmp eax, ecx
je 0x565f47
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
xor ebp, ebp
call fcn.005b6c70
test eax, eax
jle 0x5660f0
lea esp, [esp]
push ebp
lea ecx, [esp + 0x110]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.005b6e00
push str.team_id
lea ecx, [esp + 0x110]
call fcn.00419060
mov ebx, eax
mov eax, dword [esp + 0x118]
test eax, eax
je 0x565fcd
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x565fcd
test edi, edi
je 0x565fcd
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
push ebx
call fcn.004ad7c0
add esp, 4
test al, al
je 0x5660de
mov ecx, dword [esi + 0x20]
xor eax, eax
test ecx, ecx
jbe 0x565ff5
cmp ebx, dword [esp + eax*4 + 0x3c]
je 0x565ffd
mov edx, dword [esi + 0x20]
inc eax
cmp eax, edx
jb 0x565fe7
mov dword [esp + ecx*4 + 0x3c], ebx
inc ecx
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x10]
push ebp
lea edx, [esp + 0x60]
push edx
call fcn.005b6e00
push str.num_wins
lea ecx, [esp + 0x60]
call fcn.00419060
add dword [esi + 0x24], eax
mov eax, dword [esp + 0x68]
test eax, eax
je 0x566042
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x566042
test edi, edi
je 0x566042
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x10]
push ebp
lea eax, [esp + 0xe0]
push eax
call fcn.005b6e00
push str.num_draws
lea ecx, [esp + 0xe0]
call fcn.00419060
add dword [esi + 0x24], eax
mov eax, dword [esp + 0xe8]
test eax, eax
je 0x566090
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x566090
test edi, edi
je 0x566090
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
push ebp
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.005b6e00
push str.num_losses
lea ecx, [esp + 0x90]
call fcn.00419060
add dword [esi + 0x24], eax
mov eax, dword [esp + 0x98]
test eax, eax
je 0x5660de
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5660de
test edi, edi
je 0x5660de
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x10]
inc ebp
call fcn.005b6c70
cmp ebp, eax
jl 0x565f80
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x344]
push eax
call fcn.004d6a20
mov ecx, dword [eax + 0x48]
push 0x20
push ecx
add esi, 0x28
push esi
call fcn.0081d420
mov eax, dword [esp + 0x39c]
add esp, 0x18
lea edx, [esp + 0x344]
cmp eax, edx
pop ebp
pop ebx
je 0x56634d
push eax
call fcn.0079a005
add esp, 4
jmp 0x56634d
mov esi, dword [edx + 0x120]
push str.manager_id
lea ecx, [esp + 0x170]
add esi, 8
call fcn.00418c70
lea eax, [esp + 8]
push eax
push 0
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x238]
push edx
call fcn.005b7360
add esp, 0xc
push eax
lea eax, [esp + 0x1c]
push str.team_manager
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 + 0x14]
call fcn.005bdce0
lea ecx, [esp + 0x22c]
call fcn.004a9690
mov eax, dword [esp + 0x184]
lea ecx, [esp + 0x174]
cmp eax, ecx
je 0x5661d0
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 8]
call fcn.005b6c70
test eax, eax
jle 0x566247
mov ecx, dword [esp + 8]
push 0
lea eax, [esp + 0xa8]
push eax
call fcn.005b6e00
push str.team_id
lea ecx, [esp + 0xa8]
call fcn.00419060
lea ecx, [esp + 0xa4]
mov edi, eax
call fcn.00418cf0
test edi, edi
jge 0x566245
push 0
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.005b6e00
push str.prev_team_id
lea ecx, [esp + 0xc8]
call fcn.00419060
lea ecx, [esp + 0xc4]
mov edi, eax
call fcn.00418cf0
mov dword [esi], edi
call fcn.004a7cc0
mov edx, dword [eax + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.005c2d00
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00493440
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push str.team_manager_history
push edx
mov dword [esi + 4], eax
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005bdc80
push eax
lea ecx, [esp + 0xc]
call fcn.00457cc0
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x5662a3
push ecx
call fcn.00418f80
lea ecx, [esp + 0x30]
call fcn.005bdce0
mov ecx, dword [esp + 8]
call fcn.005b6c70
test eax, eax
jle 0x56634d
mov ecx, dword [esp + 8]
lea edi, [eax - 1]
push edi
lea eax, [esp + 0xf8]
push eax
call fcn.005b6e00
push str.num_wins
lea ecx, [esp + 0xf8]
call fcn.00419060
lea ecx, [esp + 0xf4]
mov dword [esi + 8], eax
call fcn.00418cf0
push edi
lea ecx, [esp + 0x118]
push ecx
mov ecx, dword [esp + 0x10]
call fcn.005b6e00
push str.num_draws
lea ecx, [esp + 0x118]
call fcn.00419060
lea ecx, [esp + 0x114]
mov dword [esi + 0xc], eax
call fcn.00418cf0
mov ecx, dword [esp + 8]
push edi
lea edx, [esp + 0x68]
push edx
call fcn.005b6e00
push str.num_losses
lea ecx, [esp + 0x68]
call fcn.00419060
mov dword [esi + 0x10], eax
lea ecx, [esp + 0x64]
call fcn.00418cf0
mov ecx, dword [esp + 8]
test ecx, ecx
je case.default.0x565a68
push ecx
call fcn.00418f80
pop edi
pop esi
add esp, 0x378
ret 4
mov esi, dword [edx + 0x120]
push 8
add esi, 8
call fcn.00584140
push eax
push esi
call fcn.0081d420
add esp, 0xc
push 8
call fcn.00584110
push eax
lea eax, [esi + 9]
push eax
call fcn.0081d420
add esp, 0xc
call fcn.00575f00
mov ecx, eax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
call fcn.00575f00
cdq
mov ecx, 0x3c
idiv ecx
test edx, edx
je 0x5663c4
inc edi
mov word [esi + 0x12], di
pop edi
pop esi
add esp, 0x378
ret 4
mov edx, dword [edx + 0x120]
mov dword [edx + 8], 0
pop edi
pop esi
add esp, 0x378
ret 4