Function at 0x4ba680
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4f8510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
mov esi, ecx
lea ecx, [esp + 0x3c]
call fcn.00427790
mov ecx, dword [esi + 0x10c]
lea eax, [esp + 0x38]
push 0
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x54], 0
call fcn.004a9f10
test eax, eax
je 0x4bae84
lea ecx, [esp + 0x34]
call fcn.00427790
mov ecx, dword [0x525848]
lea edx, [esp + 0x30]
lea eax, [esp + 0x38]
push edx
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x54], 1
call fcn.004aa2d0
test eax, eax
je 0x4bae76
lea edx, [esp + 0xc]
push 0x50e548
push edx
lea ecx, [esp + 0x38]
call fcn.004086e0
lea eax, [esp + 4]
push 0x51a0c0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 2
call fcn.004086e0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x50], 3
call fcn.004dec69
add esp, 8
test eax, eax
jne 0x4bae64
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4ba787
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4badf0
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4ba787
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x4ba779
lea ecx, [esp + 4]
call fcn.00402350
jmp 0x4ba787
push 0x5209fc
lea ecx, [esp + 8]
call fcn.00406e00
mov eax, dword [0x50d0e0]
push ebx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x5c]
push str.title
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x58], 6
call fcn.004086e0
mov ecx, dword [0x50d0e0]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x5c]
mov bl, 8
push 0x2e
push edx
mov byte [esp + 0x58], bl
call fcn.004dec29
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esp, 8
test eax, eax
jne 0x4ba7e0
or esi, 0xffffffff
jmp 0x4ba80c
mov ecx, dword [esp + 0x5c]
sub eax, ecx
sar eax, 1
mov esi, eax
test esi, esi
jle 0x4ba80c
mov eax, dword [ecx - 8]
sub eax, esi
cmp eax, 5
jge 0x4ba80c
push 0
push 0x50fbf8
lea ecx, [esp + 0x64]
call fcn.00414af0
test eax, eax
jg 0x4ba838
push 0
push str..wma
lea ecx, [esp + 0x64]
call fcn.00414af0
test eax, eax
jg 0x4ba838
push 0
push 0x50fac8
lea ecx, [esp + 0x64]
call fcn.00414af0
test eax, eax
jle 0x4ba944
lea eax, [esp + 0x30]
push esi
push eax
lea ecx, [esp + 0x64]
call fcn.00407030
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
mov byte [esp + 0x50], 9
je 0x4ba898
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4ba86c
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4ba873
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4ba883
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004021f0
jmp 0x4ba898
lea ecx, [esp + 0x18]
call fcn.00402350
mov esi, dword [esi]
mov dword [esp + 0x18], esi
add esi, 0xfffffff4
push esi
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [0x50d0e4]
mov byte [esp + 0x50], bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4ba8cb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4ba8cb
mov eax, dword [esp + 0x30]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4ba8fa
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x4ba8e8
lea ecx, [esp + 0x5c]
call fcn.00402350
jmp 0x4ba8f6
push 0x5209fc
lea ecx, [esp + 0x60]
call fcn.00406e00
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
je 0x4ba944
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4ba916
mov edx, dword [0x50d0e4]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4ba91d
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4ba92d
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [esp + 0x64]
call fcn.004021f0
jmp 0x4ba944
lea ecx, [esp + 0x5c]
call fcn.00402350
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
add eax, 0xfffffff4
push eax
call edi
push ebp
lea edx, [esp + 0x14]
push str.author
push edx
lea ecx, [esp + 0x44]
call fcn.004086e0
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
push eax
push ebx
mov byte [esp + 0x5c], 0xa
call fcn.004df3e0
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x70]
push ecx
push ebp
call fcn.004df3e0
add esp, 0x10
xor edi, edi
lea ecx, [esp + 0x60]
push edi
push 0x5c
call fcn.004174e0
test eax, eax
jge 0x4baa14
push edi
push 0x2f
lea ecx, [esp + 0x68]
call fcn.004174e0
test eax, eax
jge 0x4baa14
push edi
push 0x3a
lea ecx, [esp + 0x68]
call fcn.004174e0
test eax, eax
jge 0x4baa14
push edi
push 0x2a
lea ecx, [esp + 0x68]
call fcn.004174e0
test eax, eax
jge 0x4baa14
push edi
push 0x3f
lea ecx, [esp + 0x68]
call fcn.004174e0
test eax, eax
jge 0x4baa14
push edi
push 0x22
lea ecx, [esp + 0x68]
call fcn.004174e0
test eax, eax
jge 0x4baa14
push edi
push 0x3c
lea ecx, [esp + 0x68]
call fcn.004174e0
test eax, eax
jge 0x4baa14
push edi
push 0x3e
lea ecx, [esp + 0x68]
call fcn.004174e0
test eax, eax
jge 0x4baa14
push edi
push 0x7c
lea ecx, [esp + 0x68]
call fcn.004174e0
test eax, eax
jl 0x4baa19
mov edi, 1
push 0
push 0x5c
lea ecx, [esp + 0x1c]
call fcn.004174e0
test eax, eax
jge 0x4baab6
push 0
push 0x2f
lea ecx, [esp + 0x1c]
call fcn.004174e0
test eax, eax
jge 0x4baab6
push 0
push 0x3a
lea ecx, [esp + 0x1c]
call fcn.004174e0
test eax, eax
jge 0x4baab6
push 0
push 0x2a
lea ecx, [esp + 0x1c]
call fcn.004174e0
test eax, eax
jge 0x4baab6
push 0
push 0x3f
lea ecx, [esp + 0x1c]
call fcn.004174e0
test eax, eax
jge 0x4baab6
push 0
push 0x22
lea ecx, [esp + 0x1c]
call fcn.004174e0
test eax, eax
jge 0x4baab6
push 0
push 0x3c
lea ecx, [esp + 0x1c]
call fcn.004174e0
test eax, eax
jge 0x4baab6
push 0
push 0x3e
lea ecx, [esp + 0x1c]
call fcn.004174e0
test eax, eax
jge 0x4baab6
push 0
push 0x7c
lea ecx, [esp + 0x1c]
call fcn.004174e0
test eax, eax
jl 0x4baabb
mov edi, 1
mov eax, dword [esp + 0x18]
push 0x5c
push eax
mov esi, dword [eax - 8]
call fcn.004dec29
add esp, 8
test eax, eax
jne 0x4baad6
or eax, 0xffffffff
jmp 0x4baadc
sub eax, dword [esp + 0x18]
sar eax, 1
sub esi, eax
lea edx, [esp + 0x24]
dec esi
lea ecx, [esp + 0x18]
push esi
push edx
call fcn.004071a0
mov eax, dword [esp + 0x24]
push 0x2e
push eax
mov byte [esp + 0x5c], 0xb
call fcn.004dec29
add esp, 8
test eax, eax
jne 0x4bab0b
or eax, 0xffffffff
jmp 0x4bab11
sub eax, dword [esp + 0x24]
sar eax, 1
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.00407030
mov edx, dword [esp + 0x18]
push 0x5c
push edx
mov byte [esp + 0x5c], 0xc
call fcn.004dec29
add esp, 8
test eax, eax
jne 0x4bab3d
or eax, 0xffffffff
jmp 0x4bab43
sub eax, dword [esp + 0x18]
sar eax, 1
inc eax
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00407030
mov eax, dword [esp + 0x14]
mov byte [esp + 0x54], 0xd
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4bab7d
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x2c]
push ecx
push eax
push str._s____s.lrc
push edx
call fcn.004074f0
add esp, 0x10
jmp 0x4bab94
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x2c]
push eax
push str._s.lrc
push ecx
call fcn.004074f0
add esp, 0xc
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x30]
push edx
push str._s.lrc
push eax
call fcn.004074f0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0x3c]
push str._s_s.lrc
push eax
call fcn.004074f0
add esp, 0x1c
test edi, edi
je 0x4babdc
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call fcn.004df3e0
add esp, 8
mov word [ebp], 0
mov eax, dword [0x525910]
xor esi, esi
test eax, eax
pop ebp
jle 0x4bad98
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov bl, 0xf
mov eax, dword [0x525918]
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x64]
lea eax, [eax + esi*4]
push eax
push ecx
call fcn.0040d460
mov eax, dword [0x525918]
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x68]
lea eax, [eax + esi*4]
mov byte [esp + 0x54], 0xe
push eax
push ecx
call fcn.0040d460
mov edx, dword [esp + 0x60]
mov byte [esp + 0x50], bl
push edx
call edi
cmp eax, 0xffffffff
jne 0x4bac83
mov eax, dword [esp + 0x64]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4bad39
mov ecx, dword [esp + 0x24]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x4bad78
lea ecx, [esp + 0x64]
call fcn.00402160
lea ecx, [esp + 0x60]
mov byte [esp + 0x50], 0xd
call fcn.00402160
mov eax, dword [0x525910]
inc esi
cmp esi, eax
jl 0x4babf4
jmp 0x4bad98
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x60]
cmp ecx, eax
je 0x4bacd9
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4baca3
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4bacaa
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4bacba
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.004021f0
jmp 0x4bacd5
lea ecx, [esp + 0xc]
call fcn.00402350
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov esi, dword [0x50d0e4]
lea edx, [ecx - 0xc]
cmp edx, esi
je 0x4bad0c
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4bad08
mov eax, dword [esp + 0x64]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
mov eax, dword [esp + 0x60]
mov edx, dword [0x50d0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4bad98
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4bad98
mov edx, dword [esp + 0x60]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
jmp 0x4bad98
lea eax, [esp + 0x64]
lea ecx, [esp + 0xc]
push eax
call fcn.00402090
mov eax, dword [esp + 0x64]
mov edx, dword [0x50d0e4]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4bad8f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4bad8f
mov edx, dword [esp + 0x64]
lea eax, [edx - 0xc]
push eax
call fcn.004de3a6
add esp, 4
jmp 0x4bad8f
lea eax, [esp + 0x24]
lea ecx, [esp + 0xc]
push eax
call fcn.00402090
lea ecx, [esp + 0x64]
call fcn.00402160
lea ecx, [esp + 0x60]
call fcn.00402160
lea ecx, [esp + 0x34]
call fcn.00402160
lea ecx, [esp + 0x1c]
call fcn.00402160
lea ecx, [esp + 0x20]
call fcn.00402160
lea ecx, [esp + 0x10]
call fcn.00402160
lea ecx, [esp + 0x18]
call fcn.00402160
lea ecx, [esp + 0x5c]
call fcn.00402160
lea ecx, [esp + 0x24]
call fcn.00402160
lea ecx, [esp + 0x2c]
call fcn.00402160
lea ecx, [esp + 0x28]
mov byte [esp + 0x50], 3
call fcn.00402160
pop edi
pop ebx
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4bae64
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.004df3e0
mov edx, dword [esp + 0xc]
add esp, 8
lea ecx, [esp + 0x30]
push edx
push 0x51a0c0
call fcn.00408380
lea ecx, [esp + 4]
call fcn.00402160
lea ecx, [esp + 0xc]
call fcn.00402160
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 0
call fcn.0042ca10
lea ecx, [esp + 0x3c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0042ca10
mov eax, 1
pop esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 0x10
lea ecx, [esp + 4]
call fcn.00402160
lea ecx, [esp + 0xc]
call fcn.00402160
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 0
call fcn.0042ca10
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x48], 0xffffffff
test eax, eax
je 0x4bae9a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x40]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x48
ret 0x10