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

Disassembly:
mov ecx, dword [str.challenge_regions]
sub esp, 0x244
push ebp
push esi
push edi
lea eax, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x30]
call fcn.005bdce0
mov ecx, dword [esp + 0x2c]
call fcn.005b6c70
mov ecx, dword [esp + 0x25c]
mov word [ecx], ax
mov eax, dword [str.challenges]
lea edx, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005bdc80
mov ecx, dword [esp + 0x2c]
test ecx, ecx
mov esi, eax
je 0x5710ac
push ecx
call fcn.00418f80
mov eax, dword [esi]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x5710b8
inc dword [eax]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x5710c6
push ecx
call fcn.00418f80
lea ecx, [esp + 0x34]
call fcn.005bdce0
mov eax, dword [0x8b0b5c]
mov ecx, dword [esp + 0x2c]
push eax
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 1
call fcn.00570e60
mov ecx, dword [esp + 0x2c]
call fcn.005b6c70
mov ecx, dword [esp + 0x258]
mov word [ecx], ax
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
movsx eax, ax
imul eax, eax, 0x54
push 0
push 0x10
push 0
push eax
push 0x847a97
call dword [edx + 0x28]
mov ecx, dword [esp + 0x254]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 0x58]
mov edx, dword [eax + 0x4c]
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 + 0x1c]
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
call fcn.005b86b0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 0
push ebx
mov eax, dword [esp + 0x30]
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 + 0x54]
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], esi
call fcn.005b86b0
mov edx, dword [esp + 0x24]
mov eax, esi
cmp edx, eax
setne bl
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x50]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
je 0x5711e3
dec dword [eax]
cmp dword [eax], ebp
mov esi, eax
jne 0x5711e3
cmp esi, ebp
je 0x5711e3
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
test bl, bl
je 0x57187b
mov eax, dword [esp + 0x258]
mov esi, dword [eax]
add esi, dword [esp + 0x34]
or ebx, 0xffffffff
mov byte [esi + 2], 0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov word [esi + 0xc], bp
mov byte [esi + 0xe], 0xff
mov byte [esi + 0xf], 0xff
mov byte [esi + 0x10], 0xff
mov byte [esi + 0x11], 0xff
mov byte [esi + 0x12], 0xff
mov byte [esi + 0x13], 0xff
mov byte [esi + 0x14], 0xff
mov byte [esi + 0x15], 0xff
mov byte [esi + 0x16], 0xff
mov byte [esi + 0x17], 0xff
mov byte [esi + 0x18], 0xff
mov byte [esi + 0x19], 0xff
mov byte [esi + 0x1a], 0xff
mov byte [esi + 0x1b], 0xff
mov byte [esi + 0x1c], 0xff
mov byte [esi + 0x1d], 0xff
mov byte [esi + 0x1e], 0xff
mov byte [esi + 0x1f], 0xff
mov byte [esi + 0x20], 0xff
mov byte [esi + 0x21], 0xff
mov byte [esi + 0x22], 0xff
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebp
mov byte [esi], 0
mov byte [esi + 1], 0
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov edx, dword [0x8b0b5c]
push edx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 2], al
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov ecx, dword [str.region]
push ecx
lea ecx, [esp + 0x14]
call fcn.00419060
mov dword [esi + 4], eax
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov eax, dword [str.type]
push eax
lea ecx, [esp + 0x14]
call fcn.00419060
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov edx, dword [str.value]
push edx
lea ecx, [esp + 0x14]
call fcn.00419060
mov word [esi + 0xc], ax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov ecx, dword [str.difficulty]
push ecx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0xe], al
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov eax, dword [str.halflength]
push eax
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0xf], al
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov edx, dword [str.prestige_usermax]
push edx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x10], al
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov ecx, dword [str.prestige_vsmin]
push ecx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x11], al
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov eax, dword [str.situation]
push eax
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x12], al
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov edx, dword [str.score_user]
push edx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x13], al
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov ecx, dword [str.score_vs]
push ecx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x14], al
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov eax, dword [str.score_diff]
push eax
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x15], al
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov edx, dword [str.yellow_user]
push edx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x16], al
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov ecx, dword [str.yellow_vs]
push ecx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x17], al
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov eax, dword [str.red_user]
push eax
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x18], al
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov edx, dword [str.red_vs]
push edx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x19], al
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov ecx, dword [str.injuries_user]
push ecx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x1a], al
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov eax, dword [str.injuries_vs]
push eax
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x1b], al
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov edx, dword [str.subsleft_user]
push edx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x1c], al
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov ecx, dword [str.subsleft_vs]
push ecx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x1d], al
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov eax, dword [str.starting_half]
push eax
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x1e], al
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov edx, dword [str.time_in_half]
push edx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x1f], al
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov ecx, dword [str.ball_possession]
push ecx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x20], al
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov eax, dword [str.ball_position]
push eax
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x21], al
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov edx, dword [str.et_format]
push edx
lea ecx, [esp + 0x14]
call fcn.00419060
mov byte [esi + 0x22], al
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov ecx, dword [str.tourneyid]
push ecx
lea ecx, [esp + 0x14]
call fcn.00419060
mov dword [esi + 0x24], eax
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov eax, dword [str.triggers]
push eax
lea ecx, [esp + 0x10c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0047ad20
mov edx, dword [eax + 0x48]
push 0x100
push edx
lea eax, [esp + 0x15c]
push eax
call fcn.0081d420
mov eax, dword [esp + 0x15c]
lea ecx, [esp + 0x11c]
add esp, 0xc
cmp eax, ecx
je 0x571616
push eax
call fcn.0079a005
add esp, 4
mov edx, dword [0x863334]
mov al, byte [0x863338]
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], edx
push ecx
lea edx, [esp + 0x158]
push edx
mov byte [esp + 0x44], al
call fcn.0081ce4f
add esp, 8
cmp eax, ebp
je 0x57166e
cmp dword [esi + 0x28], 5
jge 0x57166e
push eax
call fcn.0056edb0
mov ecx, dword [esi + 0x28]
mov dword [esi + ecx*4 + 0x40], eax
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x3c]
push edx
inc ecx
push ebp
mov dword [esi + 0x28], ecx
call fcn.0081ce4f
add esp, 0xc
cmp eax, ebp
jne 0x571642
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov ecx, dword [str.trigger_params]
push ecx
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x18]
call fcn.0047ad20
mov eax, dword [eax + 0x48]
push 0x100
push eax
lea ecx, [esp + 0x15c]
push ecx
call fcn.0081d420
mov eax, dword [esp + 0xc4]
lea edx, [esp + 0x84]
add esp, 0xc
cmp eax, edx
je 0x5716c5
push eax
call fcn.0079a005
add esp, 4
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x158]
push ecx
call fcn.0081ce4f
mov ecx, dword [esi + 0x28]
add esp, 8
xor edi, edi
cmp ecx, ebp
jle 0x571709
lea ebp, [esi + 0x2c]
push eax
call fcn.0081cda3
lea edx, [esp + 0x3c]
push edx
push 0
mov dword [ebp], eax
call fcn.0081ce4f
mov ecx, dword [esi + 0x28]
add esp, 0xc
inc edi
add ebp, 4
cmp edi, ecx
jl 0x5716e6
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.005b84a0
mov ecx, dword [str.name]
push ecx
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x18]
call fcn.0047ad20
mov ebp, dword [esp + 0x104]
mov eax, dword [str.CREATE]
mov edi, ebp
lea ecx, [ecx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x571764
test cl, cl
je 0x571760
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x571764
add eax, 2
add edi, 2
test cl, cl
jne 0x571740
xor eax, eax
jmp 0x571768
sbb eax, eax
sbb eax, ebx
test eax, eax
jne 0x57177d
mov al, byte [esi + 2]
mov ecx, dword [esp + 0x264]
mov byte [ecx], al
jmp 0x57184b
mov eax, dword [str.DDMISS]
mov edi, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x5717a8
test cl, cl
je 0x5717a4
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x5717a8
add eax, 2
add edi, 2
test cl, cl
jne 0x571784
xor eax, eax
jmp 0x5717ac
sbb eax, eax
sbb eax, ebx
test eax, eax
jne 0x5717c2
mov al, byte [esi + 2]
mov ecx, dword [esp + 0x264]
mov byte [ecx + 1], al
jmp 0x57184b
mov eax, dword [str.TOTALFB]
mov edi, ebp
lea esp, [esp]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x5717f4
test cl, cl
je 0x5717f0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x5717f4
add eax, 2
add edi, 2
test cl, cl
jne 0x5717d0
xor eax, eax
jmp 0x5717f8
sbb eax, eax
sbb eax, ebx
test eax, eax
jne 0x57180b
mov al, byte [esi + 2]
mov ecx, dword [esp + 0x264]
mov byte [ecx + 2], al
jmp 0x57184b
mov eax, dword [str.SEASON]
mov edi, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x571836
test cl, cl
je 0x571832
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x571836
add eax, 2
add edi, 2
test cl, cl
jne 0x571812
xor eax, eax
jmp 0x57183a
sbb eax, eax
sbb eax, ebx
test eax, eax
jne 0x57184b
mov al, byte [esi + 2]
mov ecx, dword [esp + 0x264]
mov byte [ecx + 3], al
lea edx, [esp + 0xc4]
cmp ebp, edx
je 0x57185f
push ebp
call fcn.0079a005
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x24]
lea eax, [edx + ecx*4]
mov dword [esp + 0x24], eax
add dword [esp + 0x34], 0x54
jmp 0x571173
mov eax, dword [esp + 0x1c]
cmp eax, ebp
pop ebx
je 0x5718a0
dec dword [eax]
cmp dword [eax], ebp
mov esi, eax
jne 0x5718a0
cmp esi, ebp
je 0x5718a0
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x5718ef
dec dword [eax]
cmp dword [eax], ebp
mov edi, eax
jne 0x5718ef
cmp edi, ebp
je 0x5718ef
mov esi, dword [edi + 0x5c]
cmp esi, ebp
je 0x5718d3
dec dword [esi]
jne 0x5718d3
cmp esi, ebp
je 0x5718d3
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 0x5718e6
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x244
ret