Function at 0x4382e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 0x2c
test eax, eax
je 0x4382f3
mov dword [eax], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
test ebx, ebx
je 0x43866c
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x43866c
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
push edi
mov dword [ebp - 0x14], 0
lea ecx, [eax*4]
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [eax + 0x48]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
movzx eax, word [ebx + 4]
mov word [esi + 0x10], ax
movzx eax, word [ebx + 6]
mov word [esi + 0x12], ax
movzx eax, word [ebx + 8]
mov word [esi + 0x14], ax
movzx eax, word [ebx + 0xa]
mov word [esi + 0x16], ax
movzx ecx, word [ebx + 0xe]
movzx edx, word [ebx + 0xc]
mov eax, ecx
shr eax, 9
add eax, 0x50
mov dword [ebp - 0x18], eax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov dword [ebp - 0x20], ecx
dec eax
mov dword [ebp - 0x1c], eax
mov eax, edx
shr eax, 0xb
mov dword [ebp - 0x24], eax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], edx
call fcn.004fa303
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
movzx eax, word [ebx + 0x24]
mov word [esi + 0x30], ax
mov eax, dword [ebx + 0x26]
mov dword [esi + 0x34], eax
mov eax, dword [ebx + 0x2a]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
movzx eax, word [ebx + 0x1c]
mov ebx, 0x1ff
cmp eax, ebx
mov edi, ebx
cmovb edi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x2e
push edi
push eax
lea eax, [esi + 0x50]
push eax
call fcn.004eb010
mov byte [edi + esi + 0x50], 0
mov edi, dword [ebp + 0x10]
movzx eax, word [edi + 0x20]
cmp eax, ebx
cmovb ebx, eax
mov dword [esi + 0x40], ebx
movzx ecx, word [edi + 0x1e]
movzx eax, word [edi + 0x1c]
add ecx, edi
add eax, 0x2e
add eax, ecx
push ebx
push eax
lea eax, [esi + 0x250]
push eax
call fcn.004eb010
mov edx, dword [ebp + 0xc]
add esp, 0x1c
mov byte [ebx + esi + 0x250], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x48]
lea ecx, [ebx + 0x10]
test eax, eax
je 0x438491
cmp edx, dword [ecx]
jae 0x438491
mov eax, dword [eax + 0x10]
mov esi, dword [ebx + 0x48]
mov eax, dword [eax + edx*4]
add eax, dword [esi]
mov esi, dword [ebp + 0x14]
je 0x438491
movzx edi, word [eax + 0x1c]
test edi, edi
je 0x438485
movzx edi, word [eax + 0x1c]
cmp byte [eax + edi + 0x2d], 0x2f
jne 0x438485
mov eax, 1
jmp 0x43849a
movzx eax, byte [eax + 0x26]
shr eax, 4
and eax, 1
jmp 0x43849a
mov dword [ebx + 0x1c], 0x18
xor eax, eax
mov dword [esi + 0x44], eax
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4384c3
cmp edx, dword [ecx]
jae 0x4384c3
mov eax, dword [eax + 0x10]
mov ecx, dword [ebx + 0x48]
mov eax, dword [eax + edx*4]
add eax, dword [ecx]
je 0x4384c3
test byte [eax + 8], 0x41
mov eax, 0
setne al
jmp 0x4384cc
mov dword [ebx + 0x1c], 0x18
xor eax, eax
mov dword [esi + 0x48], eax
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x438521
cmp edx, dword [ebx + 0x10]
jae 0x438521
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edx*4]
add eax, dword [ecx]
je 0x438521
movzx ecx, word [eax + 0xa]
movzx eax, word [eax + 8]
test cx, cx
je 0x438500
cmp ecx, 8
je 0x438500
mov dword [ebx + 0x1c], 4
jmp 0x438528
test al, 0x41
je 0x43850d
mov dword [ebx + 0x1c], 5
jmp 0x438528
test al, 0x20
je 0x43851a
mov dword [ebx + 0x1c], 6
jmp 0x438528
mov eax, 1
jmp 0x43852a
mov dword [ebx + 0x1c], 0x18
xor eax, eax
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x20]
cmp ecx, dword [esi + 0x2c]
jb 0x438549
ja 0x438541
cmp eax, edx
jbe 0x438549
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jmp 0x438555
mov ebx, dword [esi + 0x2c]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov edi, dword [esi + 0x3c]
cmp dword [ebp - 4], edi
mov edi, dword [ebp + 0x10]
jb 0x43857f
ja 0x43856d
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x38]
mov ebx, dword [ebp + 8]
jbe 0x43857f
cmp ecx, dword [esi + 0x2c]
jb 0x438578
ja 0x438585
cmp eax, edx
ja 0x438585
mov ecx, dword [esi + 0x2c]
mov eax, edx
jmp 0x438585
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
cmp eax, 0xffffffff
jne 0x4385ce
test ecx, ecx
jne 0x4385ce
movzx ecx, word [edi + 0x1e]
test ecx, ecx
je 0x4385ce
movzx eax, word [edi + 0x1c]
add edi, 0x2e
add edi, eax
nop
cmp ecx, 4
jb 0x43865c
movzx edx, word [edi + 2]
lea eax, [edx + 4]
cmp eax, ecx
ja 0x43865c
cmp word [edi], 1
je 0x4385da
add edi, 4
mov eax, 0xfffffffc
sub eax, edx
add edi, edx
add ecx, eax
jne 0x4385a0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
add edi, 4
test eax, eax
je 0x4385ea
mov dword [eax], 1
cmp dword [esi + 0x28], 0xffffffff
jne 0x43860e
cmp dword [esi + 0x2c], 0
jne 0x43860e
cmp edx, 8
jb 0x43865c
mov ecx, dword [edi + 4]
xor eax, eax
or eax, dword [edi]
add edi, 8
mov dword [esi + 0x28], eax
add edx, 0xfffffff8
mov dword [esi + 0x2c], ecx
cmp dword [esi + 0x20], 0xffffffff
jne 0x438632
cmp dword [esi + 0x24], 0
jne 0x438632
cmp edx, 8
jb 0x43865c
mov ecx, dword [edi + 4]
xor eax, eax
or eax, dword [edi]
add edi, 8
mov dword [esi + 0x20], eax
sub edx, 8
mov dword [esi + 0x24], ecx
cmp dword [esi + 0x38], 0xffffffff
jne 0x4385ce
cmp dword [esi + 0x3c], 0
jne 0x4385ce
cmp edx, 8
jb 0x43865c
mov ecx, dword [edi + 4]
xor eax, eax
or eax, dword [edi]
pop edi
mov dword [esi + 0x38], eax
mov eax, 1
mov dword [esi + 0x3c], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [ebx + 0x1c], 9
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je 0x43867a
mov dword [eax + 0x1c], 0x18
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret