Function at 0x10382e7
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
mov esi, edx
xor edx, edx
cmp ecx, edx
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 0xc00000e5
jne 0x1038382
cmp esi, edx
je 0x1038382
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ecx, edx
mov dword [ebp - 0x20], ecx
je 0x1038382
mov eax, dword [eax]
cmp eax, edx
mov dword [ebp - 0xc], eax
je 0x1038382
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 8], edx
jne 0x1038382
cmp dword [ebx], edx
jne 0x1038382
push 0x3e
pop ecx
lea edi, [ebp - 0x124]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x9c], edx
jne 0x10385fe
cmp dword [ebp - 0x98], edx
jne 0x10385fe
cmp dword [ebp - 0x84], edx
jne 0x10385fe
cmp dword [ebp - 0x80], edx
jne 0x10385fe
movzx eax, word [ebp - 0x11e]
mov ecx, dword [ebp - 4]
imul eax, eax, 0x28
sub eax, dword [ebp - 0x20]
lea eax, [eax + ecx + 0xf8]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jbe 0x10383a7
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1005040
call fcn.0102080c
mov eax, dword [ebp - 0x10]
jmp 0x1038600
mov esi, dword [ebp - 0xd0]
mov ecx, esi
sub ecx, eax
push 0x28
pop eax
cmp ecx, eax
jae 0x10383bf
sub eax, ecx
mov dword [ebp - 8], eax
jmp 0x10383c4
mov dword [ebp - 8], edx
mov eax, edx
lea ecx, [esi + eax]
mov eax, dword [ebp - 0xe8]
lea edi, [eax - 1]
mov edx, edi
and edx, ecx
sub eax, edx
and eax, edi
add ecx, eax
mov eax, ecx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0xc]
sub eax, esi
lea edi, [ecx + eax]
push ebx
push edi
mov dword [ebp - 0x24], eax
call fcn.0103f632
test eax, eax
jl 0x1038600
mov dword [ebx], edi
mov ecx, edi
mov edi, dword [ebx + 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov edi, dword [ebx + 8]
mov ecx, esi
mov esi, dword [eax + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ebx, dword [ebx + 8]
xor ecx, ecx
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push ebx
push ecx
mov dword [ebp - 0xc], ecx
call fcn.0106ab64
test eax, eax
jl 0x1038600
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x103845e
and dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 1
jmp 0x103838c
mov esi, dword [ebp - 8]
lea ecx, [eax + 0x78]
mov dword [ebp - 0x20], ecx
lea edi, [eax + 0x38]
mov ecx, dword [edi]
lea edx, [ecx + esi - 1]
dec ecx
not ecx
and edx, ecx
test esi, esi
mov ebx, eax
mov dword [ebp - 0x28], edi
jbe 0x10384cf
mov ecx, dword [ebp - 0x20]
push 0x10
pop esi
mov eax, dword [ecx]
test eax, eax
je 0x1038496
cmp eax, dword [ebp - 0xd0]
jae 0x1038496
add eax, edx
mov dword [ecx], eax
add ecx, 8
dec esi
jne 0x1038484
mov eax, dword [ebx + 0x2c]
test eax, eax
jbe 0x10384b0
cmp eax, dword [ebp - 0xd0]
jae 0x10384b0
add eax, edx
mov dword [ebx + 0x2c], eax
cmp word [ebx + 0x18], 0x10b
jne 0x10384cc
mov eax, dword [ebx + 0x30]
test eax, eax
jbe 0x10384cc
cmp eax, dword [ebp - 0xd0]
jae 0x10384cc
add eax, edx
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + 8]
add esi, dword [ebp - 4]
lea ecx, [eax + 0xf8]
movzx eax, word [ebx + 6]
imul eax, eax, 0x640
add eax, ecx
cmp ecx, esi
je 0x1038535
add ecx, 0xc
mov dword [ebp - 4], ecx
lea edi, [ecx - 0xc]
cmp edi, eax
jae 0x1038532
mov edi, dword [ecx + 8]
test edi, edi
jbe 0x103850d
mov ecx, dword [ebp - 0x24]
add edi, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], edi
cmp dword [ebp - 8], 0
jbe 0x1038525
mov edi, dword [ecx]
test edi, edi
jbe 0x1038525
cmp edi, dword [ebp - 0xd0]
jae 0x1038525
add edi, edx
mov dword [ecx], edi
add ecx, 0x28
lea edi, [ecx - 0xc]
cmp edi, esi
mov dword [ebp - 4], ecx
jne 0x10384f4
mov edi, dword [ebp - 0x28]
push 0x1005064
push 8
push esi
call fcn.01037769
xor ecx, ecx
cmp eax, ecx
jl 0x1038600
movzx eax, word [ebp - 0x11e]
cmp eax, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jbe 0x103857e
lea eax, [esi - 0x20]
cmp dword [ebp - 8], 0
jbe 0x103857a
mov ecx, dword [eax + 4]
dec dword [ebp - 8]
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
sub eax, 0x28
cmp dword [ebp - 4], 0
je 0x1038560
test ecx, ecx
jne 0x1038580
mov ecx, dword [edi]
mov eax, dword [edi]
lea ecx, [eax + ecx - 1]
mov edx, dword [ebp - 0x2c]
dec eax
not eax
and ecx, eax
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x24], 0x40000040
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 0x14], ecx
inc word [ebx + 6]
mov eax, dword [edi]
mov dword [ebx + 0x54], edx
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
add ecx, eax
lea ecx, [ecx + esi - 1]
dec eax
not eax
and ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x50], ecx
mov ecx, dword [eax]
sub ecx, dword [ebp - 0xd0]
mov esi, dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 8]
add esi, dword [ebp - 0xd0]
mov eax, ecx
shr ecx, 2
add edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
mov edx, ebx
call fcn.01038116
test eax, eax
jl 0x1038600
xor edx, edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8