Function at 0x10005030
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
pxor xmm0, xmm0
mov ebp, esp
push edi
push esi
push ebx
push ecx
lea ecx, [ebp + 8]
sub esp, 0x9c
mov eax, dword [ecx + 0xc]
movups xmmword [ebp - 0x2c], xmm0
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx + 0x10]
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x6c], eax
mov eax, dword [ecx + 0x14]
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x68], eax
movups xmmword [ebp - 0x20], xmm0
test byte [0x10006038], 8
jne 0x10005308
mov eax, esi
and eax, 1
mov dword [ebp - 0x64], eax
jne 0x100052b0
test esi, 0x10000
jne 0x100053d0
and esi, 0x20000
jne 0x100050f0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x490
mov dword [ebp - 0x60], 0
xor ebx, ebx
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseActCtx]
mov eax, dword [ebp - 0x64]
sub esp, 4
test eax, eax
jne 0x10005410
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_FindActCtxSectionGuid]
mov dword [ebp - 0x70], 0x20000
sub esp, 0x14
test eax, eax
je 0x100050a4
lea edi, [ebp - 0x58]
lea esi, [ebp - 0x2c]
mov dword [esp + 0x14], 0
mov ebx, dword [sym.imp.kernel32.dll_QueryActCtxW]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 3
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x30]
mov dword [esp], 0
mov dword [esp + 4], eax
call ebx
sub esp, 0x1c
test eax, eax
jne 0x1000517d
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
jne 0x100050b1
mov edx, dword [ebp - 0x58]
mov dword [esp], edx
mov dword [ebp - 0x74], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x60], eax
mov dword [esp + 0x18], edi
mov edx, dword [ebp - 0x74]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 3
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x30]
mov dword [esp], 0
mov dword [esp + 4], eax
call ebx
sub esp, 0x1c
mov ebx, eax
test eax, eax
je 0x100050ba
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x48]
test edx, edx
je 0x10005430
add eax, dword [eax + 0x60]
mov edi, dword [eax + 0x18]
mov esi, dword [eax + 0x20]
add edi, eax
add esi, eax
mov dword [ebp - 0x74], edi
mov edi, dword [eax + 0x14]
mov dword [ebp - 0x7c], esi
mov esi, dword [eax + 0x1c]
lea ecx, [edi + 2]
lea eax, [esi + 2]
test esi, esi
cmovne esi, eax
mov edx, dword [ebp - 0x60]
mov eax, dword [edx + 0x40]
mov edi, dword [edx + 4]
mov dword [ebp - 0x78], eax
lea edx, [esi + edi + 0x16]
mov eax, dword [ebp - 0x68]
add edx, ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x10005478
cmp dword [ebp - 0x6c], edx
jb 0x10005478
cmp dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], ecx
mov edx, 1
mov ecx, dword [ebp - 0x5c]
sbb edx, 0xffffffff
add edi, 2
mov dword [ecx + 4], edx
lea edx, [ecx + 0x14]
mov dword [ecx], 0x14
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x78]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x68], edx
call sym._memcpy
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x10], edx
mov ecx, dword [ebp - 0x6c]
add edi, edx
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], ecx
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._memcpy
mov ecx, dword [ebp - 0x5c]
xor edx, edx
test esi, esi
mov dword [ecx + 0xc], edi
mov ecx, dword [ebp - 0x68]
jne 0x100054a0
mov eax, dword [ebp - 0x5c]
mov dword [eax + 8], edx
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0
jmp 0x100050ba
lea eax, [ebp - 0x54]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ActivateActCtx]
sub esp, 8
mov ebx, eax
test eax, eax
jne 0x10005090
test byte [0x10006038], 4
je 0x100050e0
mov dword [esp + 0xc], str.Failed_to_activate_context._n
mov dword [esp + 8], str.SxsLookupClrGuid
mov dword [esp + 4], 0x10006038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x100050e0
test edi, edi
je 0x10005490
mov eax, edi
shr eax, 0x10
je 0x10005460
movzx eax, byte [edi + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [edi + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [edi + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [edi + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [edi + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [edi + 8]
mov dword [esp + 0x10], eax
movzx eax, word [edi + 6]
mov dword [esp + 0xc], eax
movzx eax, word [edi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_2
mov edx, dword [ebp - 0x68]
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x6c]
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x5c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str._lx___s___p___p___Ix___p._n
mov dword [esp + 8], str.SxsLookupClrGuid
mov dword [esp + 4], 0x10006038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10005082
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 9
mov dword [esp + 4], 0
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_FindActCtxSectionGuid]
sub esp, 0x14
test eax, eax
je 0x1000509c
mov dword [ebp - 0x70], 0
jmp 0x1000512a
mov eax, dword [ebp - 0x54]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_DeactivateActCtx]
sub esp, 8
jmp 0x100050d4
mov esi, dword [eax + 0x18]
mov edi, dword [eax + 0x20]
add esi, eax
add edi, eax
mov dword [ebp - 0x7c], esi
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x74], edi
lea ecx, [esi + 2]
mov esi, dword [eax + 0x1c]
lea eax, [esi + 2]
test esi, esi
cmovne esi, eax
jmp 0x100051f9
mov dword [esp + 4], edi
mov dword [esp], str._guid_0x_04hx_
call sym._wine_dbg_sprintf_2
jmp 0x1000537d
mov eax, dword fs:[0x18]
xor ebx, ebx
mov dword [eax + 0x34], 0x7a
jmp 0x100050ba
mov eax, str._null_
jmp 0x1000537d
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x7c]
lea edx, [edi + ecx]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x68], edx
call sym._memcpy
mov edx, dword [ebp - 0x68]
jmp 0x10005292