Function at 0x1004f6e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf0
mov ebx, ecx
mov ecx, dword [ecx]
xor edi, edi
mov eax, 1
lock cmpxchg dword [ecx], edi
jne 0x1004f719
mov ecx, dword [ebx]
mov eax, dword [ecx + 4]
cmp eax, 1
jne 0x1004f7c5
mov dword [ecx], 1
jmp 0x1004f97e
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
cmp dword [eax + 0x50], 1
mov dword [esp + 0x58], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x50], ecx
mov cl, byte [eax + 0x68]
mov byte [esp + 8], cl
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x44]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x48], ecx
jne 0x1004f79d
mov ecx, dword [eax + 0x54]
mov edi, 1
mov dword [esp + 0x10], ecx
cmp byte [eax + 0x69], 1
jne 0x1004f83a
movsd xmm0, qword [eax + 0x6a]
movsd xmm1, qword [eax + 0x72]
mov cl, 1
mov dword [esp + 0xc], ecx
movsd qword [esp + 0x78], xmm1
movsd qword [esp + 0x70], xmm0
jmp 0x1004f842
mov dword [esp + 8], ecx
lea esi, [ecx + 8]
lea edi, [esp + 0x70]
mov ecx, 0x1e
rep movsd dword es:[edi], dword [esi]
call sub.KERNEL32.dll_GetProcessHeap
push 0x80
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1004f98b
mov edi, eax
mov dword [eax], 1
mov dword [eax + 4], 1
lea esi, [esp + 0x70]
mov ecx, 0x1e
add edi, 8
rep movsd dword es:[edi], dword [esi]
mov dword [ebx], eax
mov esi, dword [esp + 8]
cmp esi, 0xffffffff
je 0x1004f97e
lock dec dword [esi + 4]
jne 0x1004f97e
call sub.KERNEL32.dll_GetProcessHeap
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapFree
jmp 0x1004f97e
mov dword [esp + 0xc], 0
mov cl, byte [eax + 0x7a]
mov edx, dword [eax + 0x58]
mov esi, dword [eax + 0x5c]
movsd xmm0, qword [esp + 0x70]
movsd xmm1, qword [esp + 0x78]
mov byte [esp + 7], cl
mov cl, byte [eax + 0x7b]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x60]
mov eax, dword [eax + 0x64]
mov dword [esp + 0x1c], esi
movsd qword [esp + 0x68], xmm1
movsd qword [esp + 0x60], xmm0
mov byte [esp + 6], cl
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
call sub.KERNEL32.dll_GetProcessHeap
push 0x80
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1004f98b
mov dword [eax], 1
mov esi, eax
mov dword [eax + 4], 1
mov eax, dword [esp + 0x58]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x58], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x64], eax
mov al, byte [esp + 8]
mov byte [esi + 0x68], al
mov eax, dword [esp + 0xc]
mov byte [esi + 0x69], al
mov al, byte [esp + 7]
movsd xmm0, qword [esp + 0x60]
movsd xmm1, qword [esp + 0x68]
movsd qword [esi + 0x6a], xmm0
movsd qword [esi + 0x72], xmm1
mov byte [esi + 0x7a], al
mov al, byte [esp + 6]
mov byte [esi + 0x7b], al
mov eax, dword [ebx]
lock dec dword [eax]
jne 0x1004f97c
mov ecx, dword [ebx]
call fcn.1004faf0
mov dword [ebx], esi
mov eax, dword [ebx]
add eax, 8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x80
mov edx, 8
call fcn.10006540
ud2