Function at 0x102b1b00
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x40
mov eax, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [edx]
mov ecx, dword [eax + 0x10]
push ebp
xor ebp, ebp
mov dword [esp + 0x10], ecx
movzx eax, byte [ecx + 6]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 7]
or edx, eax
and edx, 0xfffffffe
mov dword [esp + 0xc], edx
jne 0x102b1b3c
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
push esi
mov ecx, edx
shr ecx, 1
cmp byte [esp + 0x50], 0
mov esi, ecx
push edi
mov dword [esp + 0x30], ecx
mov edi, 0xffff
je 0x102b1b55
inc ebx
xor eax, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
test ecx, ecx
jbe 0x102b1f2c
add edx, 2
mov dword [esp + 0x24], edx
mov edi, edi
mov edx, dword [esp + 0x18]
lea esi, [ecx + eax]
add edx, 0xe
shr esi, 1
movzx eax, byte [edx + esi*2]
lea edx, [edx + esi*2]
shl ax, 8
movzx edi, ax
movzx eax, byte [edx + 1]
add edx, dword [esp + 0x24]
or edi, eax
mov dword [esp + 0x2c], edi
movzx eax, byte [edx]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 1]
or ecx, eax
mov dword [esp + 0x1c], ecx
cmp ebx, ecx
jae 0x102b1bbc
mov eax, dword [esp + 0x40]
mov ecx, esi
mov dword [esp + 0x3c], ecx
jmp 0x102b1bcb
cmp ebx, edi
jbe 0x102b1bd4
mov ecx, dword [esp + 0x3c]
lea eax, [esi + 1]
mov dword [esp + 0x40], eax
cmp eax, ecx
jb 0x102b1b70
jmp 0x102b1f2c
add edx, dword [esp + 0x14]
movzx eax, byte [edx]
shl ax, 8
cwde
mov dword [esp + 0x10], eax
movzx eax, byte [edx + 1]
or dword [esp + 0x10], eax
add edx, dword [esp + 0x14]
movzx eax, byte [edx]
shl ax, 8
movzx ebp, ax
movzx eax, byte [edx + 1]
or ebp, eax
mov eax, dword [esp + 0x30]
dec eax
cmp esi, eax
mov eax, dword [esp + 0x20]
jb 0x102b1c4a
cmp ecx, 0xffff
jne 0x102b1c4a
cmp edi, ecx
jne 0x102b1c4a
mov ecx, dword [eax]
mov dword [esp + 0x44], ecx
test ebp, ebp
je 0x102b1c4a
mov eax, dword [esp + 0x44]
mov ecx, dword [ecx + 0x1f8]
add ecx, dword [eax + 0x1f4]
lea eax, [ebp + 2]
add eax, edx
cmp eax, ecx
mov eax, dword [esp + 0x20]
jbe 0x102b1c4a
mov dword [esp + 0x10], 1
xor ebp, ebp
test byte [eax + 0x14], 2
je 0x102b1fbe
mov eax, esi
mov dword [esp + 0x28], eax
cmp ebp, 0xffff
jne 0x102b1c63
inc esi
mov edi, eax
test eax, eax
je 0x102b1d7a
mov ecx, dword [esp + 0x18]
add ecx, 0xc
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
add ecx, 0xe
add eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x14]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
add eax, ecx
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x28]
lea eax, [eax + ecx*2]
mov ecx, 1
add eax, 0xe
mov dword [esp + 0x40], eax
mov eax, 1
sub eax, dword [esp + 0x14]
sub ecx, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], ecx
movzx ecx, byte [eax + ecx]
mov eax, dword [esp + 0x3c]
movzx eax, byte [eax]
shl ax, 8
movzx eax, ax
or ecx, eax
cmp ebx, ecx
ja 0x102b1d76
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
movzx eax, byte [eax]
shl ax, 8
movzx ecx, ax
mov eax, dword [esp + 0x44]
movzx eax, byte [eax + edx]
or ecx, eax
movzx eax, byte [edx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x44]
add ecx, ebp
shl ax, 8
movsx edx, ax
movzx eax, byte [ecx]
or edx, eax
movzx eax, byte [ebp]
shl ax, 8
mov dword [esp + 0x10], edx
mov edx, ebp
movzx ebp, ax
mov eax, dword [esp + 0x14]
movzx eax, byte [ecx + eax]
or ebp, eax
cmp ebp, 0xffff
je 0x102b1d51
lea esi, [edi - 1]
mov eax, dword [esp + 0x34]
sub dword [esp + 0x3c], 2
sub eax, 2
sub dword [esp + 0x38], 2
sub dword [esp + 0x40], 2
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
dec edi
jne 0x102b1cd2
mov eax, dword [esp + 0x28]
lea ecx, [eax + 1]
cmp esi, ecx
jne 0x102b1f54
cmp edi, eax
je 0x102b1df3
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
lea ecx, [ecx + eax*2]
movzx eax, byte [ecx + 0xe]
add ecx, 0xe
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [esp + 0x2c], edx
lea edx, [esi + 2]
add edx, ecx
movzx eax, byte [edx]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 1]
add edx, esi
or ecx, eax
mov dword [esp + 0x1c], ecx
movzx eax, byte [edx]
shl ax, 8
movsx edi, ax
movzx eax, byte [edx + 1]
add edx, esi
or edi, eax
mov dword [esp + 0x10], edi
movzx eax, byte [edx]
shl ax, 8
movzx ebp, ax
movzx eax, byte [edx + 1]
or ebp, eax
mov eax, dword [esp + 0x28]
jmp 0x102b1df7
mov ecx, dword [esp + 0x1c]
lea edi, [eax + 1]
mov esi, eax
cmp edi, dword [esp + 0x30]
jae 0x102b1f1f
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [edx + 0xe]
lea eax, [eax + edi*2]
mov dword [esp + 0x40], eax
add eax, dword [esp + 0x24]
mov dword [esp + 0x34], eax
lea eax, [ecx + 8]
add eax, edi
lea eax, [edx + eax*2]
mov dword [esp + 0x38], eax
lea eax, [ecx + edx]
lea eax, [eax + ecx*2]
lea eax, [eax + edi*2]
add eax, 0x10
mov dword [esp + 0x3c], eax
mov eax, 1
sub eax, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x44], eax
mov eax, 1
sub eax, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
lea esp, [esp]
movzx eax, byte [eax]
mov edx, dword [esp + 0x4c]
shl ax, 8
movzx eax, ax
movzx edx, byte [ecx + edx]
or edx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], edx
mov edx, ecx
mov ecx, dword [esp + 0x44]
movzx ecx, byte [eax + ecx]
mov eax, dword [esp + 0x34]
movzx eax, byte [eax]
shl ax, 8
movzx eax, ax
or ecx, eax
cmp ebx, ecx
jb 0x102b1f17
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x44]
movzx eax, byte [eax]
add ecx, dword [esp + 0x3c]
shl ax, 8
mov dword [esp + 0x2c], edx
movsx edx, ax
movzx eax, byte [ecx]
or edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x3c]
movzx ebp, byte [ecx + eax]
mov eax, edx
mov ecx, dword [esp + 0x34]
movzx eax, byte [eax]
shl ax, 8
movzx eax, ax
or ebp, eax
mov eax, dword [esp + 0x40]
cmp ebp, 0xffff
cmovne esi, edi
add dword [esp + 0x38], 2
add dword [esp + 0x3c], 2
inc edi
add eax, 2
add ecx, 2
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ecx
cmp edi, dword [esp + 0x30]
jb 0x102b1e60
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edi
cmp esi, eax
jne 0x102b1f58
mov esi, edi
mov edi, dword [esp + 0x2c]
xor ebp, ebp
cmp byte [esp + 0x54], 0
je 0x102b2066
cmp ebx, edi
jbe 0x102b201d
inc esi
cmp esi, dword [esp + 0x30]
jne 0x102b201d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
mov ecx, dword [esp + 0x1c]
cmp esi, edi
je 0x102b2006
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
add ecx, 0xe
movzx eax, byte [ecx + esi*2]
lea ecx, [ecx + esi*2]
shl ax, 8
movzx edi, ax
movzx eax, byte [ecx + 1]
lea edx, [ebp + 2]
or edi, eax
add edx, ecx
movzx eax, byte [edx]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 1]
add edx, ebp
or ecx, eax
movzx eax, byte [edx]
shl ax, 8
cwde
mov dword [esp + 0x10], eax
movzx eax, byte [edx + 1]
add edx, ebp
or dword [esp + 0x10], eax
movzx eax, byte [edx]
shl ax, 8
movzx ebp, ax
movzx eax, byte [edx + 1]
or ebp, eax
jmp 0x102b1fce
cmp ebp, 0xffff
je 0x102b1f2a
mov ecx, dword [esp + 0x1c]
test ebp, ebp
je 0x102b200c
mov eax, ebx
sub eax, ecx
lea eax, [eax*2]
add eax, ebp
add edx, eax
movzx eax, byte [edx]
shl ax, 8
movzx ebp, ax
movzx eax, byte [edx + 1]
or ebp, eax
je 0x102b1f2c
add ebp, dword [esp + 0x10]
and ebp, 0xffff
jmp 0x102b1f2c
mov edi, dword [esp + 0x2c]
jmp 0x102b1fce
mov ebp, dword [esp + 0x10]
add ebp, ebx
and ebp, 0xffff
jmp 0x102b1f2c
mov edx, esi
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.102b1340
test eax, eax
je 0x102b2042
test ebp, ebp
je 0x102b2066
mov eax, dword [esp + 0x48]
pop edi
pop esi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0x40
ret
mov dword [esi + 0x18], ebx
test ebp, ebp
je 0x102b204e
mov dword [esi + 0x1c], ebp
jmp 0x102b2059
mov dword [esi + 0x18], ebx
call fcn.102b14a0
mov ebp, dword [esi + 0x1c]
test ebp, ebp
je 0x102b2066
mov eax, dword [esp + 0x48]
mov ecx, dword [esi + 0x18]
mov dword [eax], ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x40
ret