Function at 0x407780
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x458900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebp, 1
mov dword [esp + 0x30], ebp
call fcn.00454014
call fcn.0043d49d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax - 0xc]
test eax, eax
mov byte [esp + 0x30], 2
je 0x4077dd
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401a30
jmp 0x4077ed
push 0xe
push 0x45d670
lea ecx, [esp + 0x18]
call fcn.00401840
call fcn.0043d49d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x3c]
push 0x464468
push esi
mov byte [esp + 0x38], 3
call fcn.0042826b
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 4]
jne 0x40784c
cmp ecx, ebp
jle 0x407837
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.004015d0
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push str.0Music010010_s00000
push ecx
call fcn.004064f0
add esp, 0xc
jmp 0x407875
cmp ecx, ebp
jle 0x407861
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.004015d0
mov eax, dword [esp + 0x10]
push esi
push eax
lea eax, [esp + 0x1c]
push str.0Music0100___10_s0_s0000
push eax
call fcn.004064f0
add esp, 0x10
push 0x200
call fcn.0043d3c0
mov ebx, eax
xor eax, eax
mov ecx, 0x80
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 4]
add esp, 4
cmp eax, ebp
mov dword [esp + 0x18], ebx
jle 0x4078af
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.004015d0
mov edi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call ebp
mov esi, eax
cmp dword [edi - 4], 1
jle 0x4078db
mov edx, dword [edi - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.004015d0
mov edi, dword [esp + 0x14]
push esi
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
call ebp
mov ebp, dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [esp + 0x24], ebx
xor ebx, ebx
push ebx
push str.MsnMsgrUIManager
push ebx
lea eax, [esi + esi + 2]
push ebx
mov dword [esp + 0x2c], 0x547
mov dword [esp + 0x30], eax
call ebp
mov esi, eax
test esi, esi
je 0x40793a
cmp ebx, 0xa
jge 0x40793a
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push str.MsnMsgrUIManager
push esi
push 0
inc ebx
call ebp
mov esi, eax
test esi, esi
jne 0x407912
mov edx, dword [esp + 0x18]
push edx
call fcn.0043d3bb
add edi, 0xfffffff0
add esp, 4
mov byte [esp + 0x30], 2
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407966
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407989
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret