Function at 0x409870
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4daec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00459f40
mov eax, dword [0x52506c]
mov dword [esp + 0x34], 0
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov eax, dword [0x5335e4]
mov edi, dword [esp + 0x3c]
test eax, eax
mov byte [esp + 0x34], 2
je 0x4098cc
mov eax, dword [edi]
push eax
push str.Start_of_WriteEntry_to_file___s_
call fcn.004244f0
add esp, 8
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [esp + 0x24]
call fcn.00459f80
mov eax, dword [edi]
push 2
push eax
lea ecx, [esp + 0x28]
call fcn.00459f90
test eax, eax
jne 0x40992e
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.004b2656
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.004b2656
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xffffffff
call fcn.0045a030
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
mov al, byte [esp + 0x40]
test al, al
je 0x409979
mov eax, dword [0x5335e4]
test eax, eax
je 0x40994c
push str.WriteEntry:_Write_FILENAME_tag_for_Windows_CDDB
call fcn.004244f0
add esp, 4
push esi
lea edx, [esp + 0x44]
push 0x5335bc
push edx
call fcn.004b2885
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 3
call fcn.0045a140
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 2
call fcn.004b2656
push str._xmcd_CD_database_file
lea ecx, [esp + 0x44]
call fcn.004b26c4
lea eax, [esp + 0x40]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x38], 4
call fcn.0045a140
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 2
call fcn.004b2656
push 0x516e20
lea ecx, [esp + 0x44]
call fcn.004b26c4
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 5
push ecx
lea ecx, [esp + 0x24]
call fcn.0045a140
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 2
call fcn.004b2656
push str._Track_frame_offsets:
lea ecx, [esp + 0x44]
call fcn.004b26c4
lea edx, [esp + 0x40]
lea ecx, [esp + 0x20]
push edx
mov byte [esp + 0x38], 6
call fcn.0045a140
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 2
call fcn.004b2656
mov ecx, dword [esi + 8]
xor eax, eax
mov edx, dword [ecx + 4]
test edx, edx
jle 0x409a4b
lea edi, [eax + 1]
push edi
call fcn.00419920
add eax, 0x96
push eax
lea eax, [esp + 0xc]
push str._t_d
push eax
call fcn.004acb0b
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x24]
call fcn.0045a140
mov ecx, dword [esi + 8]
mov eax, edi
cmp eax, dword [ecx + 4]
jl 0x409a12
push 0x516e20
lea ecx, [esp + 0x44]
call fcn.004b26c4
lea edx, [esp + 0x40]
lea ecx, [esp + 0x20]
push edx
mov byte [esp + 0x38], 7
call fcn.0045a140
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 2
call fcn.004b2656
mov eax, dword [esi + 8]
lea ecx, [esp + 8]
mov eax, dword [eax + 0x988]
push eax
push str._Disc_length:__d_seconds
push ecx
call fcn.004acb0b
add esp, 0xc
lea edx, [esp + 8]
lea ecx, [esp + 0x20]
push edx
call fcn.0045a140
push 0x516e20
lea ecx, [esp + 0x44]
call fcn.004b26c4
lea eax, [esp + 0x40]
lea ecx, [esp + 0x20]
push eax
mov byte [esp + 0x38], 8
call fcn.0045a140
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 2
call fcn.004b2656
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x98c]
cmp eax, 0x64
jle 0x409ae5
push 0
jmp 0x409ae6
push eax
mov edx, dword [0x5335a0]
lea eax, [esp + 0xc]
push edx
push str._s__d
push eax
call fcn.004acb0b
add esp, 0x10
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x24]
call fcn.0045a140
mov ecx, dword [esi + 8]
lea edx, [esp + 0x40]
push ebx
push edx
call fcn.0040a0c0
mov eax, dword [eax]
mov ecx, dword [0x53359c]
push eax
push ecx
lea edx, [esp + 0x14]
push str._s__s
push edx
mov byte [esp + 0x48], 9
call fcn.004acb0b
add esp, 0x10
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 2
call fcn.004b2656
lea eax, [esp + 0xc]
lea ecx, [esp + 0x24]
push eax
call fcn.0045a140
push 0x516e20
lea ecx, [esp + 0x48]
call fcn.004b26c4
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 0xa
push ecx
lea ecx, [esp + 0x28]
call fcn.0045a140
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 2
call fcn.004b2656
push str.DISCID
lea ecx, [esp + 0x48]
call fcn.004b26c4
lea edx, [esp + 0x44]
push esi
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 0xb
call fcn.0040a0f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 2
call fcn.004b2656
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 8]
call fcn.0040a000
mov edi, eax
mov ecx, dword [esi + 8]
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x3c], 0xc
call fcn.00409fd0
push 0x516a80
push eax
lea eax, [esp + 0x48]
mov byte [esp + 0x40], 0xd
push eax
call fcn.004b28eb
mov byte [esp + 0x38], 0xe
push edi
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004b2885
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 0x12
call fcn.004b2656
lea ecx, [esp + 0x48]
mov byte [esp + 0x38], 0x11
call fcn.004b2656
mov bl, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], bl
call fcn.004b2656
push str.DTITLE
lea ecx, [esp + 0x48]
call fcn.004b26c4
lea edx, [esp + 0x14]
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x44], 0x13
call fcn.0040a0f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], bl
call fcn.004b2656
mov ecx, dword [esi + 8]
lea edx, [esp + 0x44]
push edx
call fcn.0040a060
push eax
lea eax, [esp + 0x28]
push 0x5335a4
push eax
mov ecx, esi
mov byte [esp + 0x44], 0x14
call fcn.0040a0f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], bl
call fcn.004b2656
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esi + 8]
call fcn.0040a090
push eax
lea edx, [esp + 0x28]
push 0x5335a8
push edx
mov ecx, esi
mov byte [esp + 0x44], 0x15
call fcn.0040a0f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], bl
call fcn.004b2656
mov eax, dword [esi + 8]
xor edi, edi
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x409d3b
mov ecx, dword [0x52506c]
mov dword [esp + 0x44], ecx
push edi
lea edx, [esp + 0x48]
push str.TTITLE_d
push edx
mov byte [esp + 0x44], 0x16
call fcn.004acb0b
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [esp + 0x20]
push edi
push eax
call fcn.00409f30
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x44], 0x17
call fcn.0040a0f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0x16
call fcn.004b2656
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], bl
call fcn.004b2656
mov eax, dword [esi + 8]
inc edi
cmp edi, dword [eax + 4]
jl 0x409cd0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 8]
call fcn.0040a030
mov ecx, dword [esi + 8]
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x3c], 0x18
call fcn.0040a060
mov eax, dword [eax]
mov ecx, dword [eax - 8]
test ecx, ecx
lea ecx, [esp + 0x20]
setne byte [esp + 0x44]
call fcn.004b2656
mov al, byte [esp + 0x44]
test al, al
je 0x409dd2
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x48]
call fcn.004b23cb
mov ecx, dword [esi + 8]
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x3c], 0x19
call fcn.0040a060
mov eax, dword [eax]
mov ecx, dword [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s_YEAR:__s
push edx
mov byte [esp + 0x48], 0x1a
call fcn.004acb0b
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0x19
call fcn.004b2656
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 0x18
call fcn.004b2656
push str.EXTD
lea ecx, [esp + 0x48]
call fcn.004b26c4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x44], 0x1b
call fcn.0040a0f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 0x18
call fcn.004b2656
mov eax, dword [esi + 8]
xor edi, edi
mov ecx, dword [eax + 4]
test ecx, ecx
jle 0x409e81
mov ecx, dword [0x52506c]
mov dword [esp + 0x44], ecx
push edi
lea edx, [esp + 0x48]
push str.EXTT_d
push edx
mov byte [esp + 0x44], 0x1c
call fcn.004acb0b
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [esp + 0x20]
push edi
push eax
call fcn.00409f80
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x44], 0x1d
call fcn.0040a0f0
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0x1c
call fcn.004b2656
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 0x18
call fcn.004b2656
mov eax, dword [esi + 8]
inc edi
cmp edi, dword [eax + 4]
jl 0x409e15
push str.PLAYORDER
lea ecx, [esp + 0x48]
call fcn.004b26c4
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 0x1e
push ecx
lea ecx, [esp + 0x28]
call fcn.0045a140
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 0x18
call fcn.004b2656
lea ecx, [esp + 0x24]
call fcn.0045a1d0
mov eax, dword [0x5335e4]
test eax, eax
je 0x409ecf
push str.Entry_written
call fcn.004244f0
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], bl
call fcn.004b2656
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 2
call fcn.004b2656
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.004b2656
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 0
call fcn.004b2656
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045a030
mov ecx, dword [esp + 0x30]
pop ebx
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc