Function at 0x572e00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7466c6
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push esi
mov esi, dword [esp + 0x42c]
push esi
call fcn.0055b4a0
mov ecx, eax
shr ecx, 0x18
add esp, 4
sub ecx, 0
je 0x572e5c
sub ecx, 1
je 0x572e4e
sub ecx, 1
jne 0x572eb4
mov ecx, dword [0x912e94]
mov ecx, dword [ecx + 0x2e4]
jmp 0x572e68
mov ecx, dword [0x912e94]
mov ecx, dword [ecx + 0x2e0]
jmp 0x572e68
mov ecx, dword [0x912e94]
mov ecx, dword [ecx + 0x2dc]
mov edx, dword [ecx]
push eax
call dword [edx + 0x18]
test eax, eax
je 0x572eb4
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x572eb4
mov eax, dword [ecx]
call dword [eax + 0x28]
test eax, eax
je 0x572eb4
lea ecx, [eax + 0x4c]
mov eax, dword [ecx]
test eax, eax
je 0x572eb4
cmp word [eax], 0
je 0x572eb4
push ecx
mov ecx, dword [esp + 0x424]
call fcn.004133c0
pop esi
mov ecx, dword [esp + 0x40c]
mov dword fs:[0], ecx
add esp, 0x418
ret
push ebp
push edi
push 0xffffffffffffffff
push str.battle_titles_
lea ecx, [esp + 0x14]
call fcn.00413870
mov edi, dword [esp + 0x42c]
mov ecx, dword [edi*4 + 0x8618bc]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x424], 0
call fcn.00413410
mov edx, dword [esp + 0xc]
mov ecx, dword [0x894420]
push 0
push 0
push edx
call fcn.00414e70
mov ebp, eax
test ebp, ebp
jne 0x572f0a
mov ebp, dword [edi*4 + 0x8618bc]
mov eax, esi
shr eax, 0x18
sub eax, 0
je 0x572f38
sub eax, 1
je 0x572f2b
sub eax, 1
jne 0x572f86
mov eax, dword [0x912e94]
mov ecx, dword [eax + 0x2e4]
jmp 0x572f43
mov eax, dword [0x912e94]
mov ecx, dword [eax + 0x2e0]
jmp 0x572f43
mov eax, dword [0x912e94]
mov ecx, dword [eax + 0x2dc]
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
test eax, eax
je 0x572f86
lea esi, [eax - 0x18]
test esi, esi
je 0x572f86
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
test eax, eax
je 0x572f68
mov si, word [eax + 0xfc]
jmp 0x572f88
mov edx, dword [esi]
push 0
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call dword [edx + 0x148]
push eax
call fcn.0065ff10
add esp, 8
mov esi, eax
jmp 0x572f88
xor esi, esi
cmp edi, 0xd
je 0x572fc9
cmp si, 0xf000
jb 0x572fc9
cmp si, 0xffff
jae 0x572fc9
mov ecx, dword [esp + 0x430]
push ecx
mov ecx, dword [0x912e94]
call fcn.004668b0
test eax, eax
je 0x572fc9
lea ecx, [eax - 0x18]
test ecx, ecx
je 0x572fc9
mov edx, dword [ecx]
call dword [edx + 0x24]
test eax, eax
je 0x572fc9
mov si, word [eax + 0xfc]
push 1
push esi
call fcn.00659110
add esp, 8
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004179a0
test esi, esi
mov byte [esp + 0x420], 1
je 0x573023
movzx eax, word [esi + 0x20]
push 0
push 1
push eax
push fcn.005e0630
push str.REALM
lea ecx, [esp + 0x28]
call fcn.00415b10
movzx ecx, word [esi + 0x20]
push 0
push 1
push ecx
push 0x5e0690
push str.TOWN
lea ecx, [esp + 0x28]
call fcn.00415b10
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push ebp
push eax
call fcn.00415f60
add esp, 0x10
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x42c]
call fcn.00413310
lea ecx, [esp + 0x14]
mov byte [esp + 0x420], 0
call fcn.004179c0
lea ecx, [esp + 0xc]
mov dword [esp + 0x420], 0xffffffff
call fcn.00412de0
mov ecx, dword [esp + 0x418]
pop edi
pop ebp
pop esi
mov dword fs:[0], ecx
add esp, 0x418
ret