Function at 0x100038ef
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebp
push esi
mov esi, dword [ebx + 0x18]
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 4]
test edi, edi
mov dword [esp + 0x1c], esi
jne 0x10003783
mov eax, dword [esi + 0xc]
push ebx
call eax
add esp, 4
test al, al
jne 0x1000377c
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x20
ret
mov ecx, dword [esi + 4]
mov ebp, dword [esi]
mov edi, ecx
xor edx, edx
mov dh, byte [ebp]
sub edi, 1
add ebp, 1
test edi, edi
mov dword [esp + 0x10], edx
jne 0x100037aa
mov eax, dword [esi + 0xc]
push ebx
call eax
add esp, 4
test al, al
je 0x10003773
mov ecx, dword [esi + 4]
mov ebp, dword [esi]
mov edi, ecx
movzx edx, byte [ebp]
mov eax, dword [esp + 0x10]
add eax, edx
sub eax, 2
sub edi, 1
add ebp, 1
test eax, eax
mov dword [esp + 0x10], eax
jle 0x10003a7f
lea esp, [esp]
sub dword [esp + 0x10], 1
test edi, edi
jne 0x100037f1
mov eax, dword [esi + 0xc]
push ebx
call eax
add esp, 4
test al, al
je 0x10003773
mov ecx, dword [esi + 4]
mov ebp, dword [esi]
mov dword [esp + 0xc], ecx
mov edi, ecx
movzx esi, byte [ebp]
mov edx, dword [ebx]
mov dword [edx + 0x14], 0x53
mov ecx, dword [ebx]
mov eax, esi
sar eax, 4
and esi, 0xf
mov dword [ecx + 0x18], esi
mov edx, dword [ebx]
mov dword [edx + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push 1
sub edi, 1
push ebx
mov dword [esp + 0x14], edi
add ebp, 1
call ecx
add esp, 8
cmp esi, 4
jl 0x10003848
mov edx, dword [ebx]
mov dword [edx + 0x14], 0x20
mov eax, dword [ebx]
mov dword [eax + 0x18], esi
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call edx
add esp, 4
cmp dword [ebx + esi*4 + 0x90], 0
jne 0x10003862
push ebx
call fcn.10001de0
add esp, 4
mov dword [ebx + esi*4 + 0x90], eax
cmp dword [esp + 0x20], 0
mov edx, dword [ebx + esi*4 + 0x90]
mov dword [esp + 0x28], edx
je 0x100038aa
cmp dword [esp + 0x10], 0x80
jge 0x1000389c
mov ecx, 0x20
mov eax, 0x10001
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sar ecx, 1
mov dword [esp + 0x14], ecx
jmp 0x100038d9
mov dword [esp + 0x14], 0x40
mov ecx, dword [esp + 0x14]
jmp 0x100038d9
mov eax, 0x40
cmp dword [esp + 0x10], eax
jge 0x100038d3
mov eax, 0x10001
mov ecx, 0x20
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov ecx, eax
jmp 0x100038d9
mov dword [esp + 0x14], eax
mov ecx, eax
lea eax, [ecx - 4]
cmp eax, 0x2d
ja case.0x100038e8.5
movzx eax, byte [eax + 0x10003ac4]
jmp dword [eax*4 + 0x10003aa8]
mov dword [esp + 0x18], 0x100c7e30
jmp 0x10003933
mov dword [esp + 0x18], 0x100c7dc8
jmp 0x10003933
mov dword [esp + 0x18], 0x100c7d48
jmp 0x10003933
mov dword [esp + 0x18], 0x100c7ca0
jmp 0x10003933
mov dword [esp + 0x18], 0x100c7bd0
jmp 0x10003933
mov dword [esp + 0x18], 0x100c7ac8
jmp 0x10003933
mov dword [esp + 0x18], 0x100c7988
test ecx, ecx
mov dword [esp + 0x24], 0
jle 0x100039ef
cmp dword [esp + 0x20], 0
je 0x1000399f
test edi, edi
jne 0x1000396a
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc]
push ebx
call ecx
add esp, 4
test al, al
je 0x10003773
mov edx, dword [esi + 4]
mov ebp, dword [esi]
mov edi, edx
xor eax, eax
mov ah, byte [ebp]
sub edi, 1
add ebp, 1
test edi, edi
mov esi, eax
jne 0x10003997
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0xc]
push ebx
call ecx
add esp, 4
test al, al
je 0x10003773
mov edx, dword [edi + 4]
mov ebp, dword [edi]
mov edi, edx
movzx eax, byte [ebp]
add esi, eax
jmp 0x100039c3
test edi, edi
jne 0x100039bf
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc]
push ebx
call ecx
add esp, 4
test al, al
je 0x10003773
mov edx, dword [esi + 4]
mov ebp, dword [esi]
mov edi, edx
movzx esi, byte [ebp]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + eax*4]
mov edx, dword [esp + 0x28]
mov word [edx + ecx*2], si
mov ecx, dword [esp + 0x14]
add eax, 1
sub edi, 1
add ebp, 1
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x10003943
mov eax, dword [ebx]
cmp dword [eax + 0x68], 2
jl 0x10003a61
lea esi, [edx + 4]
mov dword [esp + 0x24], 8
mov eax, dword [ebx]
movzx ecx, word [esi - 4]
add eax, 0x18
mov dword [eax], ecx
movzx edx, word [esi - 2]
mov dword [eax + 4], edx
movzx ecx, word [esi]
mov dword [eax + 8], ecx
movzx edx, word [esi + 2]
mov dword [eax + 0xc], edx
movzx ecx, word [esi + 4]
mov dword [eax + 0x10], ecx
movzx edx, word [esi + 6]
mov dword [eax + 0x14], edx
movzx ecx, word [esi + 8]
mov dword [eax + 0x18], ecx
movzx edx, word [esi + 0xa]
mov dword [eax + 0x1c], edx
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x5f
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
push 2
push ebx
call edx
add esp, 8
add esi, 0x10
sub dword [esp + 0x24], 1
jne 0x10003a02
mov ecx, dword [esp + 0x14]
sub dword [esp + 0x10], ecx
cmp dword [esp + 0x20], 0
je 0x10003a70
sub dword [esp + 0x10], ecx
cmp dword [esp + 0x10], 0
mov esi, dword [esp + 0x1c]
jg 0x100037d0
cmp dword [esp + 0x10], 0
je 0x10003a99
mov eax, dword [ebx]
mov dword [eax + 0x14], 0xc
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call edx
add esp, 4
mov dword [esi + 4], edi
pop edi
mov dword [esi], ebp
pop esi
mov al, 1
pop ebp
add esp, 0x20
ret