Function at 0x435a10
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a8183
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5564a4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x30], esi
push str.TRUE
push str.MUSIC_PLAY
push 0x4f828c
call fcn.00405660
add eax, 0x194c
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x30], esp
mov edi, esp
push eax
call fcn.00402280
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x38]
add esp, 4
push eax
call fcn.004051d0
add esp, 8
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x28]
xor ebp, ebp
push ecx
mov dword [esp + 0x68], ebp
call fcn.004053e0
add esp, 0x14
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edi, 0xffffffff
mov byte [esp + 0x54], 2
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435aba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebp
jl 0x435ae7
push str.FALSE
push eax
call fcn.00475e58
add esp, 8
cmp eax, ebp
je 0x435ae7
mov ecx, dword [esp + 0x18]
sub eax, ecx
cmp eax, edi
je 0x435ae7
lea eax, [ecx - 0x10]
jmp 0x435dae
push ebp
call fcn.00439c80
add esp, 4
test eax, eax
je 0x435da7
mov edi, 1
mov dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00476af0
call fcn.00405660
add eax, 0x194c
mov eax, dword [eax]
sub eax, 0x10
mov dword [esp + 0x30], esp
mov ebx, esp
push eax
call fcn.00402280
lea ecx, [esp + 0x28]
add esp, 4
add eax, 0x10
push ecx
mov dword [ebx], eax
call fcn.004051d0
mov eax, dword [eax]
mov edx, dword [0x569f60]
add esp, 8
push eax
mov eax, dword [0x569f5c]
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebp, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebp
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435b79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push fcn.00401640
push fcn.00401610
push 5
push 4
lea ecx, [esp + 0x48]
push ecx
call fcn.00476b1f
push str..SndBgm1_RF_Online_ONE.mp3
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 3
call fcn.00401d30
test ebp, ebp
mov byte [esp + 0x54], 4
jle 0x435ce9
call fcn.0045f338
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x435bcb
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
xor edi, edi
test ebp, ebp
mov byte [esp + 0x54], 5
jle 0x435cc6
lea ebp, [esp + 0x38]
push edi
lea ecx, [esp + 0x24]
push str.Bgm_d
push ecx
call fcn.00401990
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov eax, dword [0x569f5c]
add esp, 0xc
push edx
push ebx
push eax
call fcn.00405660
add eax, 0x194c
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x44], esp
mov esi, esp
push eax
call fcn.00402280
lea ecx, [esp + 0x40]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004051d0
add esp, 8
mov eax, dword [eax]
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x68], 6
call fcn.004053e0
add esp, 0x14
push eax
mov ecx, ebp
mov byte [esp + 0x58], 7
call fcn.00402cc0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x54], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435c89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435cae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
add ebp, 4
cmp edi, dword [esp + 0x14]
jl 0x435bee
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
add ebx, 0xfffffff0
mov byte [esp + 0x54], 4
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x435cfd
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x435cfd
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00402cc0
mov dword [esp + 0x14], edi
mov ebp, edi
call fcn.00476afd
cdq
idiv ebp
movzx ecx, dl
mov eax, dword [esp + ecx*4 + 0x38]
push eax
lea ecx, [esi + 4]
mov byte [esi + 0xc], dl
call fcn.00439e00
test eax, eax
je 0x435d25
mov ecx, esi
call fcn.00435940
jmp 0x435d2c
mov dword [esi + 0x10], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x54], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435d51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push fcn.00401640
push 5
push 4
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x64], 2
call fcn.00475a28
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435d91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x54], edi
mov dword [esi + 0x10], ebp
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x435dcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret