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

Disassembly:
push 0xffffffffffffffff
push 0x45ec96
mov eax, dword fs:[0]
push eax
sub esp, 0x6bc
mov eax, dword [0x4739a8]
xor eax, esp
mov dword [esp + 0x6b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4739a8]
xor eax, esp
push eax
lea eax, [esp + 0x6d0]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x34]
call fcn.00401eb0
xor esi, esi
mov dword [esp + 0x6d8], esi
call fcn.00435941
mov eax, dword [eax + 4]
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00402f70
push str._temp_
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x6e4], 1
call fcn.00402e30
push str.nanoplayer.ini
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x6f0], 2
call fcn.00402e30
add esp, 0x18
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x6d8], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406650
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x6d8], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406678
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x3ff
lea ecx, [esp + 0x2d1]
push esi
push ecx
mov byte [esp + 0x2d8], 0
call fcn.00449560
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
push 0x400
lea eax, [esp + 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
cmp byte [esp + 0x2cc], 0
lea ebp, [esp + 0x2cc]
mov dword [esp + 0x14], esi
je 0x4067a3
push ebp
lea ecx, [esp + 0x1c]
call fcn.00401770
cmp dword [esp + 0x14], 0
mov byte [esp + 0x6d8], 6
je 0x406754
mov esi, dword [esp + 0x18]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [esp + 0x2c], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x406712
cmp eax, dword [esi]
jne 0x406712
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x406746
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x406967
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00448b29
add esp, 0x10
add edi, 0x10
lea ecx, [esp + 0x38]
mov dword [ebx], edi
call fcn.004036d0
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406760
inc dword [esp + 0x14]
sub eax, edx
lea ebp, [eax + ebp + 1]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x6d8], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406799
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp], 0
jne 0x4066c7
xor esi, esi
cmp dword [esp + 0x3c], esi
jle 0x406a5d
mov edi, dword [esp + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x7f
lea ecx, [esp + 0x51]
push 0
push ecx
mov byte [esp + 0x58], 0
call fcn.00449560
push 0x7f
lea edx, [esp + 0xdd]
push 0
push edx
mov byte [esp + 0xe4], 0
call fcn.00449560
push 0x7f
lea eax, [esp + 0x169]
push 0
push eax
mov byte [esp + 0x170], 0
call fcn.00449560
push 0xff
lea ecx, [esp + 0x1f5]
push 0
push ecx
mov byte [esp + 0x1fc], 0
call fcn.00449560
add esp, 0x30
test esi, esi
jl 0x406ab9
cmp esi, dword [esp + 0x3c]
jge 0x406ab9
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + esi*4]
push edx
push 0x80
lea ecx, [esp + 0x54]
push ecx
push 0
push str.fname
push eax
call ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + esi*4]
push edx
push 0x80
lea ecx, [esp + 0xd4]
push ecx
push 0
push str.path
push eax
call ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + esi*4]
push edx
push 0x80
lea ecx, [esp + 0x154]
push ecx
push 0
push str.serial
push eax
call ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + esi*4]
push edx
push 0x100
lea ecx, [esp + 0x1d4]
push ecx
push 0
push 0x46206c
push eax
call ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [edi + esi*4]
push edx
push 0
push str.compress
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14c]
push eax
call fcn.0044a32d
add esp, 4
mov ebx, eax
call fcn.00435941
mov eax, dword [eax + 4]
cmp dword [eax + 0xb4], ebx
jge 0x406a52
push 0x10
call fcn.0042bb84
mov ebx, eax
add esp, 4
mov dword [esp + 0x28], ebx
mov byte [esp + 0x6d8], 7
test ebx, ebx
je 0x40696c
mov ecx, dword [esp + 0x18]
push ecx
push ecx
lea edx, [esp + 0x1d4]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00401770
push ecx
lea eax, [esp + 0xd8]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0x6e8], 8
call fcn.00401770
push ecx
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0x6ec], 9
call fcn.00401770
mov ecx, ebx
mov byte [esp + 0x6e8], 7
call fcn.00405560
mov dword [esp + 0x18], eax
jmp 0x406974
call fcn.004011b0
mov dword [esp + 0x18], 0
mov byte [esp + 0x6d8], 5
call fcn.0042c542
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x406aaf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x18]
push 0x461b74
push edx
mov byte [esp + 0x6e4], 0xa
call fcn.00401710
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00405500
mov ecx, eax
call fcn.00405380
mov eax, dword [esp + 0x14]
push 0x461be4
push eax
call fcn.00449dbe
add esp, 8
test eax, eax
sete al
test al, al
je 0x406a0f
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov ebx, esp
push eax
call fcn.00401380
mov ecx, dword [esp + 0x28]
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.004059a0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x8c]
add ecx, 0x84
push edx
push eax
call fcn.00404e50
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x6d8], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, dword [esp + 0x3c]
jl 0x4067b9
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x8c], 0
jne 0x406abe
call fcn.00405470
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6d8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x6d8], 0xffffffff
call fcn.00402be0
xor eax, eax
jmp 0x406aff
push 0x80004005
call fcn.00401020
call fcn.0042c365
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6d8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ae6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x6d8], 0xffffffff
call fcn.00402be0
mov eax, 1
mov ecx, dword [esp + 0x6d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6b8]
xor ecx, esp
call fcn.004492d4
add esp, 0x6c8
ret