Function at 0x6ecc5d20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
lea esi, [ebp - 0x218]
push ebx
sub esp, 0x25c
mov dword [ebp - 0x21c], ecx
mov dword [esp], esi
mov ecx, dword [ecx]
mov dword [ebp - 0x228], eax
call sym._get_name
test eax, eax
je 0x6ecc5fe0
lea esi, [eax + 0xa]
mov ebx, eax
mov edx, 0x251e
cmp edi, esi
jb 0x6ecc5ec0
movzx eax, byte [eax + 8]
movzx ecx, byte [ebx + 9]
mov dword [ebp - 0x23c], esi
shl eax, 8
add eax, ecx
mov word [ebp - 0x236], ax
movzx eax, ax
mov dword [ebp - 0x22c], eax
add eax, esi
mov dword [ebp - 0x224], eax
mov ecx, eax
cmp eax, edi
ja 0x6ecc5ec0
movzx eax, byte [ebx]
movzx edx, byte [ebx + 1]
shl eax, 8
add edx, eax
movzx eax, byte [ebx + 4]
mov word [ebp - 0x220], dx
mov byte [ebp - 0x230], al
movzx eax, byte [ebx + 5]
mov byte [ebp - 0x231], al
movzx eax, byte [ebx + 6]
mov byte [ebp - 0x232], al
movzx eax, byte [ebx + 7]
mov byte [ebp - 0x233], al
mov eax, dword [ebp - 0x21c]
mov dword [eax], ecx
cmp dx, 0x29
ja 0x6ecc5fb0
cmp dx, 9
jbe case.0x6ecc5e00.2
lea eax, [edx - 0xa]
cmp ax, 0x1f
ja case.0x6ecc5e00.2
movzx eax, ax
jmp dword [eax*4 + 0x6eccba1c]
lea ebx, [ebp - 0x118]
mov eax, dword [ebp - 0x228]
mov ecx, esi
mov edx, edi
mov dword [esp], ebx
call sym._get_name
test eax, eax
je 0x6ecc6728
mov ecx, dword [ebp - 0x230]
mov edx, 2
mov eax, ebx
call sym._strdupX
mov edi, dword [ebp - 0x21c]
mov dword [edi + 0x18], eax
test eax, eax
je 0x6ecc6748
mov ecx, 8
mov word [edi + 0xa], cx
lea esi, [esi]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x21c]
xor edx, edx
mov dword [eax], edi
test byte [0x6ecc906c], 8
je 0x6ecc5ec0
mov eax, dword [ebp + 8]
mov ebx, dword [eax*4 + 0x6eccbe80]
mov eax, dword [ebp - 0x21c]
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], 0x6ecc906c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
xor edx, edx
add esp, 0x25c
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 0x6ecc6861
movzx eax, word [ebp - 0x220]
mov dword [ebp - 0x21c], ecx
mov word [ecx + 8], ax
movzx ecx, byte [ecx + 0xc]
movzx eax, byte [ebp + 0xc]
mov edx, ecx
mov byte [ebp - 0x234], cl
mov ecx, dword [ebp - 0x21c]
shl eax, 3
or al, byte [ebp + 8]
and edx, 0xffffffe4
and eax, 0x1b
or eax, edx
movzx edx, byte [ebp - 0x233]
mov byte [ecx + 0xc], al
mov eax, dword [ebp - 0x230]
shl eax, 0x18
mov ecx, eax
movzx eax, byte [ebp - 0x231]
shl eax, 0x10
add eax, ecx
mov ecx, dword [ebp - 0x21c]
add edx, eax
movzx eax, byte [ebp - 0x232]
shl eax, 8
add eax, edx
mov edx, 2
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x218]
call sym._strdupX
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 4], eax
test eax, eax
je 0x6ecc6710
mov edx, dword [ebp - 0x21c]
movzx ecx, byte [edx + 0xc]
mov edx, ecx
movzx ecx, word [ebp - 0x220]
shr dl, 3
and edx, 3
mov dword [ebp - 0x230], edx
cmp cx, 0x29
ja case.0x6ecc5fa9.0
movzx edx, cx
jmp dword [edx*4 + 0x6eccba9c]
cmp word [ebp - 0x220], 0xff01
jne case.0x6ecc5e00.2
movzx eax, word [ebp - 0x236]
shr ax, 2
add eax, 0xa
movzx eax, ax
shl eax, 2
jmp 0x6ecc5ed5
add esp, 0x25c
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 [0x6ecc906c], 1
jne 0x6ecc67a8
mov dword [ebp - 0x220], edx
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x21c]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x220]
jmp 0x6ecc5ec0
mov eax, esi
xor edx, edx
cmp dword [ebp - 0x224], esi
jbe 0x6ecc683a
mov dword [ebp - 0x21c], ebx
mov ebx, dword [ebp - 0x224]
lea esi, [esi]
movzx ecx, byte [eax]
lea eax, [eax + ecx + 1]
mov ecx, edx
inc edx
cmp ebx, eax
ja 0x6ecc6058
mov ebx, dword [ebp - 0x21c]
lea eax, [ecx*4 + 0x20]
jmp 0x6ecc5ed5
mov edi, dword [ebp - 0x224]
cmp edi, esi
jbe 0x6ecc6761
movzx eax, byte [ebx + 0xa]
lea ebx, [esi + eax + 1]
cmp edi, ebx
jb 0x6ecc678a
mov dword [ebp - 0x220], 0
mov esi, dword [ebp - 0x23c]
jmp 0x6ecc6124
test eax, eax
je 0x6ecc60c5
movzx edx, byte [esi]
mov byte [ebp - 0x118], dl
test al, 2
jne 0x6ecc6828
mov ecx, dword [ebp - 0x230]
mov byte [ebp + eax - 0x118], 0
mov edx, 2
lea eax, [ebp - 0x118]
call sym._strdupX
mov edi, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x220]
mov dword [edi + esi*4 + 0x1c], eax
test eax, eax
je 0x6ecc67f9
inc dword [ebp - 0x220]
cmp dword [ebp - 0x224], ebx
jbe 0x6ecc676b
movzx eax, byte [ebx]
mov esi, ebx
lea edx, [ebx + eax + 1]
cmp dword [ebp - 0x224], edx
jb 0x6ecc678a
mov ebx, edx
inc esi
cmp eax, 4
jb 0x6ecc60b0
mov edx, dword [esi + eax - 4]
lea ecx, [eax - 1]
lea edi, [ebp - 0x118]
shr ecx, 2
mov dword [ebp + eax - 0x11c], edx
rep movsd dword es:[edi], dword [esi]
jmp 0x6ecc60c5
lea ecx, [ebx + 0xc]
cmp dword [ebp - 0x224], ecx
jb 0x6ecc6700
movzx eax, byte [ebx + 0xa]
mov esi, dword [ebp - 0x21c]
shl eax, 8
mov edx, eax
movzx eax, byte [ebx + 0xb]
add eax, edx
mov word [esi + 0x1c], ax
lea ebx, [ebp - 0x118]
mov eax, dword [ebp - 0x228]
mov edx, edi
mov dword [esp], ebx
call sym._get_name
test eax, eax
je 0x6ecc6728
mov ecx, dword [ebp - 0x230]
mov edx, 2
mov eax, ebx
call sym._strdupX
mov dword [esi + 0x18], eax
test eax, eax
je 0x6ecc6748
mov eax, 0xc
mov word [esi + 0xa], ax
jmp 0x6ecc5e60
mov eax, dword [ebp - 0x22c]
add eax, 0x1c
jmp 0x6ecc5ed5
lea eax, [ebp - 0x118]
mov ecx, esi
mov esi, dword [ebp - 0x228]
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._get_name
mov ebx, eax
test eax, eax
je 0x6ecc6728
mov ecx, dword [ebp - 0x230]
mov edx, 2
lea eax, [ebp - 0x118]
call sym._strdupX
mov edx, dword [ebp - 0x21c]
mov dword [edx + 0x18], eax
test eax, eax
je 0x6ecc6748
lea eax, [ebp - 0x118]
mov ecx, ebx
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._get_name
test eax, eax
je 0x6ecc6728
mov ecx, dword [ebp - 0x230]
mov edx, 2
lea eax, [ebp - 0x118]
call sym._strdupX
mov edx, dword [ebp - 0x21c]
mov dword [edx + 0x1c], eax
test eax, eax
je 0x6ecc6844
mov eax, dword [ebp - 0x21c]
mov edx, 8
mov word [eax + 0xa], dx
jmp 0x6ecc5e60
mov eax, dword [ebp - 0x22c]
add eax, 0x20
jmp 0x6ecc5ed5
mov eax, dword [ebp - 0x22c]
shl eax, 4
add eax, 0x1e
jmp 0x6ecc5ed5
mov eax, dword [ebp - 0x22c]
add eax, 0x30
jmp 0x6ecc5ed5
movzx eax, word [ebp - 0x236]
shr ax, 3
add eax, 0x1d
movzx eax, ax
jmp 0x6ecc5ed5
lea ecx, [ebx + 0x1c]
cmp dword [ebp - 0x224], ecx
jb 0x6ecc6700
movzx eax, byte [ebx + 0xa]
mov esi, dword [ebp - 0x21c]
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 - 0x21c]
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 - 0x21c]
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 - 0x21c]
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 - 0x118]
add eax, edx
mov edx, edi
mov word [esi + 0x28], ax
mov eax, dword [ebp - 0x228]
mov dword [esp], ebx
call sym._get_name
mov esi, eax
test eax, eax
je 0x6ecc6728
mov ecx, dword [ebp - 0x230]
mov edx, 2
mov eax, ebx
call sym._strdupX
mov edi, dword [ebp - 0x21c]
mov dword [edi + 0x2c], eax
test eax, eax
je 0x6ecc6748
mov ebx, dword [ebp - 0x224]
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 0x6ecc5e60
mov esi, dword [ebp - 0x224]
lea edx, [ebx + 0xe]
cmp esi, edx
jb 0x6ecc6700
movzx eax, byte [ebx + 0xa]
mov edi, dword [ebp - 0x21c]
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 0x6ecc5e60
lea edx, [ebx + 0x1a]
cmp dword [ebp - 0x224], edx
jb 0x6ecc6700
mov ecx, dword [ebp - 0x21c]
xor eax, eax
mov edx, dword [ebx + eax*4 + 0xa]
mov dword [ecx + eax*4 + 0x18], edx
inc eax
cmp eax, 4
jne 0x6ecc6487
mov eax, dword [ebp - 0x21c]
mov ecx, 0x10
mov word [eax + 0xa], cx
jmp 0x6ecc5e60
lea eax, [ebp - 0x118]
mov ecx, esi
mov esi, dword [ebp - 0x228]
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._get_name
mov ebx, eax
test eax, eax
je 0x6ecc6728
mov ecx, dword [ebp - 0x230]
mov edx, 2
lea eax, [ebp - 0x118]
call sym._strdupX
mov edx, dword [ebp - 0x21c]
mov dword [edx + 0x18], eax
test eax, eax
je 0x6ecc6748
lea eax, [ebp - 0x118]
mov ecx, ebx
mov edx, edi
mov dword [esp], eax
mov eax, esi
call sym._get_name
mov ebx, eax
test eax, eax
je 0x6ecc6728
mov ecx, dword [ebp - 0x230]
mov edx, 2
lea eax, [ebp - 0x118]
call sym._strdupX
mov edx, dword [ebp - 0x21c]
mov dword [edx + 0x1c], eax
test eax, eax
je 0x6ecc6844
lea eax, [ebx + 0x14]
cmp dword [ebp - 0x224], eax
jb 0x6ecc6728
movzx eax, byte [ebx]
movzx edx, byte [ebx + 3]
mov edi, dword [ebp - 0x21c]
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
add edx, eax
movzx eax, byte [ebx + 0x12]
shl eax, 8
add eax, edx
mov edx, 0x1c
mov dword [edi + 0x30], eax
mov word [edi + 0xa], dx
jmp 0x6ecc5e60
mov edi, dword [ebp - 0x21c]
mov ebx, dword [ebp - 0x22c]
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 - 0x236]
add eax, 4
mov word [edi + 0xa], ax
jmp 0x6ecc5e60
lea edx, [ebx + 0xe]
cmp dword [ebp - 0x224], edx
jb 0x6ecc6700
mov eax, dword [ebx + 0xa]
mov edi, dword [ebp - 0x21c]
mov ebx, 4
mov dword [edi + 0x18], eax
mov word [edi + 0xa], bx
jmp 0x6ecc5e60
lea ecx, [ebx + 0x10]
cmp dword [ebp - 0x224], ecx
jb 0x6ecc6700
movzx eax, byte [ebx + 0xa]
mov esi, dword [ebp - 0x21c]
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]
add eax, edx
mov word [esi + 0x20], ax
jmp 0x6ecc6170
mov edi, dword [ebp - 0x21c]
movzx ebx, word [ebp - 0x236]
xor eax, eax
mov edx, dword [ebp - 0x22c]
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 0x6ecc5e60
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov edx, 0x251e
jmp 0x6ecc6010
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov edx, 8
jmp 0x6ecc5ec0
mov eax, dword [ebp - 0x21c]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov edx, 0x251e
mov eax, dword [eax + 4]
jmp 0x6ecc6010
mov eax, dword [ebp - 0x21c]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov edx, 8
mov eax, dword [eax + 4]
jmp 0x6ecc6010
mov dword [ebp - 0x220], 0
mov edi, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
mov dword [edi + 0x18], eax
lea eax, [eax*4 + 4]
mov word [edi + 0xa], ax
jmp 0x6ecc5e60
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov edx, 0x251e
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 4]
jmp 0x6ecc6010
movzx eax, word [ebp - 0x220]
mov dword [ebp - 0x224], edx
mov dword [esp], eax
call sym._debugstr_type
mov dword [esp + 0xc], 0x6eccb9e8
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.extract_rdata
mov dword [esp + 4], 0x6ecc906c
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x224]
mov eax, dword [eax + 4]
jmp 0x6ecc6010
mov ebx, dword [sym.imp.ucrtbase.dll_free]
test esi, esi
je 0x6ecc681e
mov edi, dword [ebp - 0x21c]
mov esi, dword [ebp - 0x220]
nop
dec esi
mov eax, dword [edi + esi*4 + 0x1c]
mov dword [esp], eax
call ebx
test esi, esi
jne 0x6ecc6810
mov edx, 8
jmp 0x6ecc6795
movzx edx, word [esi + eax - 2]
mov word [ebp + eax - 0x11a], dx
jmp 0x6ecc60c5
mov eax, 0x1c
jmp 0x6ecc5ed5
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 0x6ecc6010
mov edx, 8
jmp 0x6ecc5ec0