Function at 0x10138d00
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi - 0xa0]
mov dword [esp + 8], eax
mov edx, dword [eax]
mov eax, dword [ebp + 0x10]
movzx esi, word [eax + 6]
shl esi, 4
add esi, edx
mov ecx, dword [esi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
jne 0x10138d4e
movzx esi, cx
shl esi, 4
add esi, edx
mov ecx, dword [esi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x10138d36
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x20000000
jne 0x10138d78
nop dword [eax]
movzx esi, cx
shl esi, 4
add esi, edx
mov ecx, dword [esi]
mov eax, ecx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x10138d60
and ecx, 0xf0000000
cmp ecx, 0x60000000
jne 0x1013916f
mov eax, dword [edi + 0x60]
mov ecx, edi
movzx eax, word [eax]
mov dword [edi + 0x76], 0x4305000d
mov word [edi + 0x74], ax
call fcn.10131e50
mov edx, dword [esi]
mov edi, dword [esp + 8]
mov dword [esp + 0x10], eax
nop dword [eax]
movzx ecx, dx
shl ecx, 4
add ecx, dword [edi]
mov dword [esp + 0x14], ecx
mov edx, dword [ecx]
mov eax, edx
and eax, 0xf0000000
cmp eax, 0x80000000
je 0x10138db0
push ecx
push edi
call fcn.101398b0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], 0xfffffffc
mov ecx, dword [eax + 8]
lea eax, [esp + 0x28]
push eax
mov eax, edi
mov dword [esp + 0x2c], ecx
mov edi, dword [ebp + 8]
push dword [eax + 0x18]
push dword [edi + 0x50]
call fcn.100f8030
add esp, 0x14
cmp dword [eax + 4], 0xfffffffd
je 0x10139177
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
shr eax, 0x1c
cmp eax, 4
jne 0x10138e2d
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0
mov dword [eax + 4], 0
jmp 0x10138e4a
test eax, eax
je 0x10138e3f
cmp eax, 2
je 0x10138e3f
cmp eax, 5
jne 0x1013917f
cmp dword [esp + 0xc], 0xa
je 0x1013917f
test dword [esi], 0x830000
je 0x10138e87
mov eax, dword [esp + 8]
mov edx, esi
mov ecx, edi
sub edx, dword [eax]
sar edx, 4
call fcn.10114440
mov ecx, 0x5d00
movzx eax, ax
mov word [edi + 0x78], cx
mov ecx, dword [esp + 0x10]
mov word [edi + 0x74], cx
mov ecx, edi
mov word [edi + 0x76], ax
call fcn.10131e50
mov dword [esp + 0x10], eax
push esi
push dword [esp + 0xc]
push dword [ebp + 0xc]
push edi
call fcn.10139190
movzx ecx, ax
add esp, 0x10
mov eax, dword [esp + 0xc]
movzx eax, ax
mov word [edi + 0x74], cx
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], eax
or eax, 0x5c00
mov word [edi + 0x76], cx
mov ecx, edi
mov word [edi + 0x78], ax
call fcn.10131e50
mov edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov eax, dword [eax]
mov ecx, eax
and ecx, 0xf8000000
mov dword [esp + 0x1c], eax
cmp ecx, 0x8000000
jne 0x10139017
mov edx, dword [edi + 0x50]
mov dword [esp + 0xc], edx
mov eax, dword [edx + 0x10]
mov dword [esp + 0x14], eax
mov esi, dword [eax - 4]
mov ecx, esi
and ecx, 3
jne 0x10138f24
mov eax, dword [esi - 4]
and eax, 0xff000000
cmp eax, 0x1000000
jne 0x10138f24
mov eax, dword [edi + 0x60]
mov edx, 0x7fff
mov dword [eax], edx
lea eax, [ecx + 1]
mov byte [edi + 0x71], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x14]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x60]
mov eax, dword [eax - 4]
mov dword [esp + 0x18], eax
test ecx, ecx
jne 0x1013917f
cmp dword [edi + 0xa4], ecx
jle 0x1013917f
mov ecx, dword [esp + 0x14]
mov dword [edi + 0x54], esi
movzx edi, byte [esi - 3]
inc edi
mov dword [edx + 0x14], ecx
lea eax, [edi*8]
sub ecx, eax
lea esi, [edi*4]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp + 8]
push ecx
mov eax, dword [ecx + 0x60]
mov dword [eax - 4], 0x1007ffe
sub dword [ecx + 0x60], esi
sub dword [ecx + 0x6c], edi
dec dword [ecx + 0xa4]
mov dword [ecx + 0x68], edi
call fcn.10117160
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, dword [esp + 0x14]
xor edx, edx
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 8]
add dword [ecx + 0x60], esi
mov eax, dword [ecx + 0x60]
add dword [ecx + 0x6c], edi
inc dword [ecx + 0xa4]
mov edi, dword [ebp + 8]
mov dword [ecx + 0x68], 1
mov ecx, dword [esp + 0x18]
mov dword [eax - 4], ecx
mov ecx, edi
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x54], eax
call fcn.10114440
movzx eax, ax
mov ecx, 0x990
mov word [edi + 0x76], ax
mov edx, 0x2007ffd
mov eax, dword [edi + 0x60]
mov word [edi + 0x78], cx
mov ecx, dword [esp + 0x10]
mov word [edi + 0x74], cx
mov dword [edi + 0xf8], 3
mov dword [eax], edx
mov eax, 1
mov byte [edi + 0x71], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
cmp eax, 5
je 0x1013911b
cmp eax, 0x15
je 0x1013911b
cmp eax, 0x16
je 0x1013911b
mov ecx, dword [esp + 0x1c]
and ecx, 0xf0000000
cmp ecx, 0x50000000
je 0x1013911b
cmp eax, 0xd
je 0x101390e4
cmp eax, 0x14
je 0x101390e4
cmp eax, 0xf
je 0x101390ad
cmp eax, 0x11
je 0x101390ad
cmp eax, 0x10
je 0x10139076
cmp eax, 0x12
jne 0x1013915b
mov eax, 0x5513
mov word [edi + 0x74], dx
mov word [edi + 0x78], ax
mov ecx, edi
mov eax, dword [esp + 8]
or eax, 0x260
mov word [edi + 0x76], ax
call fcn.10131e50
mov edx, eax
mov eax, dword [edi + 0x60]
mov dword [eax], edx
mov eax, 1
mov byte [edi + 0x71], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5513
mov word [edi + 0x74], dx
mov word [edi + 0x78], ax
mov ecx, edi
mov eax, dword [esp + 8]
or eax, 0xa60
mov word [edi + 0x76], ax
call fcn.10131e50
mov edx, eax
mov eax, dword [edi + 0x60]
mov dword [eax], edx
mov eax, 1
mov byte [edi + 0x71], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x550e
mov word [edi + 0x74], dx
mov word [edi + 0x78], ax
mov ecx, edi
mov eax, dword [esp + 8]
or eax, 0x1c0
mov word [edi + 0x76], ax
call fcn.10131e50
mov edx, eax
mov eax, dword [edi + 0x60]
mov dword [eax], edx
mov eax, 1
mov byte [edi + 0x71], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx edx, word [esi]
mov ecx, edi
call fcn.10114440
mov ecx, 0x518a
mov word [edi + 0x74], ax
mov word [edi + 0x78], cx
mov ecx, dword [esp + 0x10]
mov word [edi + 0x76], cx
mov ecx, edi
call fcn.10131e50
mov edx, eax
mov eax, dword [esp + 0xc]
cmp eax, 0x15
je 0x10139151
cmp eax, 0x16
jne 0x1013915b
mov dword [edi + 0xfc], 1
mov eax, dword [edi + 0x60]
mov dword [eax], edx
mov eax, 1
mov byte [edi + 0x71], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 4
push edi
call fcn.100fa4e0
push 0x17
push edi
call fcn.100fa4e0
int3