Function at 0x10005b20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
lea esi, [ebp - 0x20c]
push ebx
sub esp, 0x23c
mov dword [ebp - 0x210], ecx
mov dword [esp], esi
mov ecx, dword [ecx]
mov dword [ebp - 0x21c], eax
call sym._get_name
test eax, eax
je 0x10005de0
lea esi, [eax + 0xa]
mov ebx, eax
mov edx, 0x251e
cmp edi, esi
jb 0x10005cc0
movzx eax, byte [eax + 8]
movzx ecx, byte [ebx + 9]
mov dword [ebp - 0x230], esi
shl eax, 8
add eax, ecx
mov word [ebp - 0x22a], ax
movzx eax, ax
mov dword [ebp - 0x220], eax
add eax, esi
mov dword [ebp - 0x218], eax
mov ecx, eax
cmp eax, edi
ja 0x10005cc0
movzx eax, byte [ebx]
movzx edx, byte [ebx + 1]
shl eax, 8
add edx, eax
movzx eax, byte [ebx + 4]
mov word [ebp - 0x214], dx
mov byte [ebp - 0x224], al
movzx eax, byte [ebx + 5]
mov byte [ebp - 0x225], al
movzx eax, byte [ebx + 6]
mov byte [ebp - 0x226], al
movzx eax, byte [ebx + 7]
mov byte [ebp - 0x227], al
mov eax, dword [ebp - 0x210]
mov dword [eax], ecx
cmp dx, 0x29
ja 0x10005db0
cmp dx, 9
jbe case.0x10005c00.2
lea eax, [edx - 0xa]
cmp ax, 0x1f
ja case.0x10005c00.2
movzx eax, ax
jmp dword [eax*4 + 0x1000ba1c]
lea ebx, [ebp - 0x10c]
mov eax, dword [ebp - 0x21c]
mov ecx, esi
mov edx, edi
mov dword [esp], ebx
call sym._get_name
test eax, eax
je 0x10006598
mov ecx, dword [ebp - 0x224]
mov edx, 2
mov eax, ebx
call sym._strdupX
mov edi, dword [ebp - 0x210]
mov dword [edi + 0x18], eax
test eax, eax
je 0x100065b8
mov ebx, 8
mov word [edi + 0xa], bx
lea esi, [esi]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x210]
xor edx, edx
mov dword [eax], edi
test byte [0x1000906c], 8
je 0x10005cc0
mov eax, dword [ebp + 8]
mov ebx, dword [eax*4 + 0x1000be80]
mov eax, dword [ebp - 0x210]
movzx eax, word [eax + 8]
mov dword [esp], eax
call sym._debugstr_type
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.found__s_record_in__s_section_n
mov dword [esp + 8], str.extract_record
mov dword [esp + 4], 0x1000906c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
xor edx, edx
add esp, 0x23c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, eax
test eax, eax
je 0x100066ea
movzx eax, word [ebp - 0x214]
mov dword [ebp - 0x210], ecx
mov word [ecx + 8], ax
movzx ecx, byte [ecx + 0xc]
movzx eax, byte [ebp + 0xc]
mov edx, ecx
mov byte [ebp - 0x228], cl
mov ecx, dword [ebp - 0x210]
shl eax, 3
or al, byte [ebp + 8]
and edx, 0xffffffe4
and eax, 0x1b
or eax, edx
movzx edx, byte [ebp - 0x227]
mov byte [ecx + 0xc], al
mov eax, dword [ebp - 0x224]
shl eax, 0x18
mov ecx, eax
movzx eax, byte [ebp - 0x225]
shl eax, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x210]
add edx, eax
movzx eax, byte [ebp - 0x226]
shl eax, 8
add eax, edx
mov edx, 2
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
call sym._strdupX
mov ecx, dword [ebp - 0x210]
mov dword [ecx + 4], eax
test eax, eax
je 0x10006580
mov edx, dword [ebp - 0x210]
movzx ecx, byte [edx + 0xc]
mov edx, ecx
movzx ecx, word [ebp - 0x214]
shr dl, 3
and edx, 3
mov dword [ebp - 0x224], edx
cmp cx, 0x29
ja case.0x10005da9.0
movzx edx, cx
jmp dword [edx*4 + 0x1000ba9c]
cmp word [ebp - 0x214], 0xff01
jne case.0x10005c00.2
movzx eax, word [ebp - 0x22a]
shr ax, 2
add eax, 0xa
movzx eax, ax
shl eax, 2
jmp 0x10005cd5
add esp, 0x23c
mov edx, 0x251e
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov edx, 0x232c
test byte [0x1000906c], 1
jne 0x10006618
mov dword [ebp - 0x214], edx
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x210]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x214]
jmp 0x10005cc0
mov eax, esi
xor edx, edx
cmp dword [ebp - 0x218], esi
jbe 0x100066aa
mov dword [ebp - 0x210], ebx
mov ebx, dword [ebp - 0x218]
lea esi, [esi]
movzx ecx, byte [eax]
lea eax, [eax + ecx + 1]
mov ecx, edx
inc edx
cmp ebx, eax
ja 0x10005e58
mov ebx, dword [ebp - 0x210]
lea eax, [ecx*4 + 0x20]
jmp 0x10005cd5
mov edi, dword [ebp - 0x218]
cmp edi, esi
jbe 0x100065d1
movzx eax, byte [ebx + 0xa]
lea ebx, [esi + eax + 1]
cmp edi, ebx
jb 0x100065fa
mov dword [ebp - 0x214], 0
mov esi, dword [ebp - 0x230]
jmp 0x10005f24
test eax, eax
je 0x10005ec5
movzx edx, byte [esi]
mov byte [ebp - 0x10c], dl
test al, 2
jne 0x10006698
mov ecx, dword [ebp - 0x224]
mov byte [ebp + eax - 0x10c], 0
mov edx, 2
lea eax, [ebp - 0x10c]
call sym._strdupX
mov edi, dword [ebp - 0x210]
mov esi, dword [ebp - 0x214]
mov dword [edi + esi*4 + 0x1c], eax
test eax, eax
je 0x10006669
inc dword [ebp - 0x214]
cmp dword [ebp - 0x218], ebx
jbe 0x100065db
movzx eax, byte [ebx]
mov esi, ebx
lea edx, [ebx + eax + 1]
cmp dword [ebp - 0x218], edx
jb 0x100065fa
mov ebx, edx
inc esi
cmp eax, 4
jb 0x10005eb0
mov edx, dword [esi + eax - 4]
lea ecx, [eax - 1]
lea edi, [ebp - 0x10c]
shr ecx, 2
mov dword [ebp + eax - 0x110], edx
rep movsd dword es:[edi], dword [esi]
jmp 0x10005ec5
lea ecx, [ebx + 0xc]
cmp dword [ebp - 0x218], ecx
jb 0x10006568
movzx eax, byte [ebx + 0xa]
mov esi, dword [ebp - 0x210]
shl eax, 8
mov edx, eax
movzx eax, byte [ebx + 0xb]
lea ebx, [ebp - 0x10c]
add eax, edx
mov edx, edi
mov word [esi + 0x1c], ax
mov eax, dword [ebp - 0x21c]
mov dword [esp], ebx
call sym._get_name
test eax, eax
je 0x10006598
mov ecx, dword [ebp - 0x224]
mov edx, 2
mov eax, ebx
call sym._strdupX
mov dword [esi + 0x18], eax
test eax, eax
je 0x100065b8
mov eax, 0xc
mov word [esi + 0xa], ax
jmp 0x10005c60
mov eax, dword [ebp - 0x220]
add eax, 0x1c
jmp 0x10005cd5
lea eax, [ebp - 0x10c]
mov ecx, esi
mov esi, dword [ebp - 0x21c]
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._get_name
mov ebx, eax
test eax, eax
je 0x10006598
mov ecx, dword [ebp - 0x224]
mov edx, 2
lea eax, [ebp - 0x10c]
call sym._strdupX
mov edx, dword [ebp - 0x210]
mov dword [edx + 0x18], eax
test eax, eax
je 0x100065b8
lea eax, [ebp - 0x10c]
mov ecx, ebx
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._get_name
test eax, eax
je 0x10006598
mov ecx, dword [ebp - 0x224]
mov edx, 2
lea eax, [ebp - 0x10c]
call sym._strdupX
mov edx, dword [ebp - 0x210]
mov dword [edx + 0x1c], eax
test eax, eax
je 0x100066cd
mov eax, dword [ebp - 0x210]
mov edx, 8
mov word [eax + 0xa], dx
jmp 0x10005c60
mov eax, dword [ebp - 0x220]
add eax, 0x20
jmp 0x10005cd5
mov eax, dword [ebp - 0x220]
shl eax, 4
add eax, 0x1e
jmp 0x10005cd5
mov eax, dword [ebp - 0x220]
add eax, 0x30
jmp 0x10005cd5
movzx eax, word [ebp - 0x22a]
shr ax, 3
add eax, 0x1d
movzx eax, ax
jmp 0x10005cd5
lea ecx, [ebx + 0x1c]
cmp dword [ebp - 0x218], ecx
jb 0x10006568
movzx eax, byte [ebx + 0xa]
mov esi, dword [ebp - 0x210]
shl eax, 8
mov edx, eax
movzx eax, byte [ebx + 0xb]
add eax, edx
mov word [esi + 0x18], ax
movzx eax, byte [ebx + 0xc]
mov byte [esi + 0x1a], al
movzx eax, byte [ebx + 0xd]
mov byte [esi + 0x1b], al
movzx eax, byte [ebx + 0xe]
movzx edx, byte [ebx + 0x11]
shl eax, 0x18
mov esi, eax
movzx eax, byte [ebx + 0xf]
shl eax, 0x10
add eax, esi
mov esi, dword [ebp - 0x210]
add edx, eax
movzx eax, byte [ebx + 0x10]
shl eax, 8
add eax, edx
mov dword [esi + 0x1c], eax
movzx eax, byte [ebx + 0x12]
movzx edx, byte [ebx + 0x15]
shl eax, 0x18
mov esi, eax
movzx eax, byte [ebx + 0x13]
shl eax, 0x10
add eax, esi
mov esi, dword [ebp - 0x210]
add edx, eax
movzx eax, byte [ebx + 0x14]
shl eax, 8
add eax, edx
mov dword [esi + 0x20], eax
movzx eax, byte [ebx + 0x16]
movzx edx, byte [ebx + 0x19]
shl eax, 0x18
mov esi, eax
movzx eax, byte [ebx + 0x17]
shl eax, 0x10
add eax, esi
mov esi, dword [ebp - 0x210]
add edx, eax
movzx eax, byte [ebx + 0x18]
shl eax, 8
add eax, edx
mov dword [esi + 0x24], eax
movzx eax, byte [ebx + 0x1a]
shl eax, 8
mov edx, eax
movzx eax, byte [ebx + 0x1b]
lea ebx, [ebp - 0x10c]
add eax, edx
mov edx, edi
mov word [esi + 0x28], ax
mov eax, dword [ebp - 0x21c]
mov dword [esp], ebx
call sym._get_name
mov esi, eax
test eax, eax
je 0x10006598
mov ecx, dword [ebp - 0x224]
mov edx, 2
mov eax, ebx
call sym._strdupX
mov edi, dword [ebp - 0x210]
mov dword [edi + 0x2c], eax
test eax, eax
je 0x100065b8
mov ebx, dword [ebp - 0x218]
lea eax, [edi + 0x30]
sub ebx, esi
movzx edx, bx
mov word [edi + 0x2a], bx
add ebx, 0x18
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov word [edi + 0xa], bx
jmp 0x10005c60
mov esi, dword [ebp - 0x218]
lea edx, [ebx + 0xe]
cmp esi, edx
jb 0x10006568
movzx eax, byte [ebx + 0xa]
mov edi, dword [ebp - 0x210]
shl eax, 8
mov ecx, eax
movzx eax, byte [ebx + 0xb]
add eax, ecx
mov word [edi + 0x18], ax
movzx eax, byte [ebx + 0xc]
mov byte [edi + 0x1a], al
movzx eax, byte [ebx + 0xd]
mov ebx, esi
sub ebx, edx
mov byte [edi + 0x1b], al
movzx ecx, bx
lea eax, [edi + 0x20]
mov word [edi + 0x1c], bx
add ebx, 8
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov word [edi + 0xa], bx
jmp 0x10005c60
lea edx, [ebx + 0x1a]
cmp dword [ebp - 0x218], edx
jb 0x10006568
mov ecx, dword [ebp - 0x210]
xor eax, eax
mov edx, dword [ebx + eax*4 + 0xa]
mov dword [ecx + eax*4 + 0x18], edx
inc eax
cmp eax, 4
jne 0x10006287
mov eax, dword [ebp - 0x210]
mov ecx, 0x10
mov word [eax + 0xa], cx
jmp 0x10005c60
lea eax, [ebp - 0x10c]
mov ecx, esi
mov esi, dword [ebp - 0x21c]
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._get_name
mov ebx, eax
test eax, eax
je 0x10006598
mov ecx, dword [ebp - 0x224]
mov edx, 2
lea eax, [ebp - 0x10c]
call sym._strdupX
mov edx, dword [ebp - 0x210]
mov dword [edx + 0x18], eax
test eax, eax
je 0x100065b8
lea eax, [ebp - 0x10c]
mov ecx, ebx
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._get_name
mov ebx, eax
test eax, eax
je 0x10006598
mov ecx, dword [ebp - 0x224]
mov edx, 2
lea eax, [ebp - 0x10c]
call sym._strdupX
mov edx, dword [ebp - 0x210]
mov dword [edx + 0x1c], eax
test eax, eax
je 0x100066cd
lea eax, [ebx + 0x14]
cmp dword [ebp - 0x218], eax
jb 0x10006598
movzx eax, byte [ebx]
movzx edx, byte [ebx + 3]
mov edi, dword [ebp - 0x210]
shl eax, 0x18
mov ecx, eax
movzx eax, byte [ebx + 1]
shl eax, 0x10
add eax, ecx
add edx, eax
movzx eax, byte [ebx + 2]
shl eax, 8
add eax, edx
mov dword [edi + 0x20], eax
movzx eax, byte [ebx + 4]
movzx edx, byte [ebx + 7]
shl eax, 0x18
mov ecx, eax
movzx eax, byte [ebx + 5]
shl eax, 0x10
add eax, ecx
add edx, eax
movzx eax, byte [ebx + 6]
shl eax, 8
add eax, edx
mov dword [edi + 0x24], eax
movzx eax, byte [ebx + 8]
movzx edx, byte [ebx + 0xb]
shl eax, 0x18
mov ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 0x10
add eax, ecx
add edx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 8
add eax, edx
mov dword [edi + 0x28], eax
movzx eax, byte [ebx + 0xc]
movzx edx, byte [ebx + 0xf]
shl eax, 0x18
mov ecx, eax
movzx eax, byte [ebx + 0xd]
shl eax, 0x10
add eax, ecx
add edx, eax
movzx eax, byte [ebx + 0xe]
shl eax, 8
add eax, edx
mov dword [edi + 0x2c], eax
movzx eax, byte [ebx + 0x10]
movzx edx, byte [ebx + 0x13]
shl eax, 0x18
mov ecx, eax
movzx eax, byte [ebx + 0x11]
shl eax, 0x10
add eax, ecx
mov ecx, 0x1c
add edx, eax
movzx eax, byte [ebx + 0x12]
mov word [edi + 0xa], cx
shl eax, 8
add eax, edx
mov dword [edi + 0x30], eax
jmp 0x10005c60
mov edi, dword [ebp - 0x210]
mov ebx, dword [ebp - 0x220]
lea eax, [edi + 0x1c]
mov dword [edi + 0x18], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
movzx eax, word [ebp - 0x22a]
add eax, 4
mov word [edi + 0xa], ax
jmp 0x10005c60
lea edx, [ebx + 0xe]
cmp dword [ebp - 0x218], edx
jb 0x10006568
mov eax, dword [ebx + 0xa]
mov edi, dword [ebp - 0x210]
mov ebx, 4
mov dword [edi + 0x18], eax
mov word [edi + 0xa], bx
jmp 0x10005c60
lea ecx, [ebx + 0x10]
cmp dword [ebp - 0x218], ecx
jb 0x10006568
movzx eax, byte [ebx + 0xa]
mov esi, dword [ebp - 0x210]
shl eax, 8
mov edx, eax
movzx eax, byte [ebx + 0xb]
add eax, edx
mov word [esi + 0x1c], ax
movzx eax, byte [ebx + 0xc]
shl eax, 8
mov edx, eax
movzx eax, byte [ebx + 0xd]
add eax, edx
mov word [esi + 0x1e], ax
movzx eax, byte [ebx + 0xe]
shl eax, 8
mov edx, eax
movzx eax, byte [ebx + 0xf]
lea ebx, [ebp - 0x10c]
add eax, edx
mov edx, edi
mov word [esi + 0x20], ax
mov eax, dword [ebp - 0x21c]
mov dword [esp], ebx
call sym._get_name
test eax, eax
je 0x10006598
mov edi, dword [ebp - 0x224]
mov edx, 2
mov eax, ebx
mov ecx, edi
call sym._strdupX
mov dword [esi + 0x18], eax
test eax, eax
je 0x100065b8
mov edx, 0xc
mov word [esi + 0xa], dx
mov dword [esp], eax
cmp edi, 1
je 0x100066b4
call dword [sym.imp.ucrtbase.dll_strlen]
mov edi, dword [ebp - 0x210]
add eax, 0xd
mov word [edi + 0xa], ax
jmp 0x10005c60
mov edi, dword [ebp - 0x210]
movzx ebx, word [ebp - 0x22a]
xor eax, eax
mov edx, dword [ebp - 0x220]
mov word [edi + 0x1a], ax
lea eax, [edi + 0x1c]
mov word [edi + 0x18], bx
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
lea eax, [ebx + 4]
mov word [edi + 0xa], ax
jmp 0x10005c60
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov edx, 0x251e
jmp 0x10005e10
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov edx, 8
jmp 0x10005cc0
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov edx, 0x251e
mov eax, dword [eax + 4]
jmp 0x10005e10
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov edx, 8
mov eax, dword [eax + 4]
jmp 0x10005e10
mov dword [ebp - 0x214], 0
mov edi, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
mov dword [edi + 0x18], eax
lea eax, [eax*4 + 4]
mov word [edi + 0xa], ax
jmp 0x10005c60
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov edx, 0x251e
mov eax, dword [ebp - 0x210]
mov eax, dword [eax + 4]
jmp 0x10005e10
movzx eax, word [ebp - 0x214]
mov dword [ebp - 0x218], edx
mov dword [esp], eax
call sym._debugstr_type
mov dword [esp + 0xc], str.unhandled_type:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.extract_rdata
mov dword [esp + 4], 0x1000906c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebp - 0x210]
mov edx, dword [ebp - 0x218]
mov eax, dword [eax + 4]
jmp 0x10005e10
mov ebx, dword [sym.imp.ucrtbase.dll_free]
test esi, esi
je 0x1000668e
mov edi, dword [ebp - 0x210]
mov esi, dword [ebp - 0x214]
nop
dec esi
mov eax, dword [edi + esi*4 + 0x1c]
mov dword [esp], eax
call ebx
test esi, esi
jne 0x10006680
mov edx, 8
jmp 0x10006605
movzx edx, word [esi + eax - 2]
mov word [ebp + eax - 0x10e], dx
jmp 0x10005ec5
mov eax, 0x1c
jmp 0x10005cd5
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edi, dword [ebp - 0x210]
lea eax, [eax + eax + 2]
add word [edi + 0xa], ax
jmp 0x10005c60
mov eax, dword [edx + 0x18]
mov edi, edx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 4]
mov edx, 8
jmp 0x10005e10
mov edx, 8
jmp 0x10005cc0