Function at 0x1021490
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
sub esp, 0xc
xor eax, eax
cmp dword [edx], 0x4550
je 0x10214b8
mov dword [ecx + 0x148], 1
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [ecx + 0x138]
push esi
movzx esi, word [edx + 0x14]
push edi
mov edi, dword [ecx]
mov edi, dword [edi + 0x3c]
lea esi, [esi + edi + 0x18]
mov dword [ebp - 8], esi
cmp esi, ebx
jae 0x1021729
mov eax, dword [edx + 0x2c]
cmp eax, ebx
jae 0x10214ee
mov edi, dword [ecx + 0x134]
add edi, eax
mov dword [ecx + 0x164], edi
lea edi, [edx + 0x18]
mov dword [ecx + 8], edi
mov eax, dword [edi + 0x38]
mov dword [ecx + 0x110], eax
movzx edi, word [edx + 6]
mov eax, 0x10
cmp ax, di
jae 0x102150f
mov edi, eax
jmp 0x1021512
movzx edi, di
mov word [ecx + 0x11c], di
movzx edx, word [edx + 6]
lea edx, [edx + edx*4]
lea eax, [esi + edx*8]
cmp eax, ebx
jae 0x1021727
xor ebx, ebx
xor edx, edx
mov dword [ebp - 4], ebx
cmp dx, di
jae 0x1021669
jmp 0x1021543
mov esi, dword [ebp - 8]
mov edi, dword [ecx + 0x134]
movzx eax, bx
lea edx, [eax + eax*4]
lea edx, [edi + edx*8]
add edx, esi
shl eax, 4
lea esi, [eax + ecx]
mov dword [esi + 0x10], edx
cmp dword [ecx + 0x140], 0
jne 0x1021580
mov edx, dword [edx + 0x24]
test edx, 0xa0000000
jne 0x1021576
test dl, 0x20
je 0x1021580
mov dword [ecx + 0x140], 1
mov eax, dword [esi + 0x10]
mov edi, dword [eax + 0x10]
test edi, edi
je 0x1021655
mov eax, dword [eax + 0x14]
add eax, edi
cmp eax, dword [ecx + 0x138]
ja 0x1021666
mov eax, dword [ecx + 4]
mov ebx, dword [eax + 0x3c]
mov eax, edi
test ebx, ebx
jne 0x10215b0
mov dword [ebp + 8], eax
jmp 0x10215d2
xor edx, edx
div ebx
test edx, edx
je 0x10215cd
mov eax, dword [ecx + 4]
mov ebx, dword [eax + 0x3c]
xor edx, edx
mov eax, edi
div ebx
inc eax
imul eax, ebx
mov dword [ebp + 8], eax
jmp 0x10215d2
mov eax, edi
mov dword [ebp + 8], edi
mov di, word [ebp - 4]
mov word [esi + 0xc], di
mov edi, dword [esi + 0x10]
lea edx, [esi + 0xc]
mov dword [ebp - 0xc], edx
mov edx, dword [esi + 0x10]
mov edx, dword [edx + 0x14]
add edx, dword [ecx + 0x134]
mov dword [esi + 0x14], edx
mov edx, dword [esi + 0x10]
mov edx, dword [edx + 0x10]
mov dword [esi + 0x18], edx
mov edx, dword [ecx + 8]
mov ebx, dword [edx + 0x10]
mov edi, dword [edi + 0xc]
cmp ebx, edi
jb 0x102164c
add eax, edi
cmp ebx, eax
ja 0x1021649
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x14]
sub eax, edi
mov edi, ebx
add eax, edi
mov edi, dword [ecx + 0x134]
add edi, eax
mov dword [ecx + 0x128], eax
mov dword [ecx + 0x124], edi
mov esi, dword [esi + 0x10]
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
sub eax, dword [edx + 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0x12c], eax
mov dword [ecx + 0x130], edx
mov eax, dword [ebp + 8]
add dword [ecx + 0x10c], eax
mov ebx, dword [ebp - 4]
inc ebx
mov dword [ebp - 4], ebx
cmp bx, word [ecx + 0x11c]
jb 0x1021540
mov esi, dword [ebp - 8]
movzx eax, word [ecx + 0x11c]
cmp bx, ax
jne 0x1021727
mov eax, dword [ecx + 4]
mov edi, dword [ecx + 8]
movzx eax, word [eax + 6]
mov ebx, dword [edi + 0x24]
lea edx, [eax + eax*4]
test ebx, ebx
jne 0x1021692
lea eax, [esi + edx*8]
jmp 0x10216a9
lea esi, [esi + edx*8]
xor edx, edx
mov eax, esi
div ebx
mov eax, esi
test edx, edx
je 0x10216a9
xor edx, edx
div ebx
inc eax
imul eax, ebx
add dword [ecx + 0x10c], eax
mov edx, dword [ecx + 0x10c]
mov eax, dword [ecx + 0x138]
cmp edx, eax
jae 0x10216d5
mov esi, dword [ecx + 0x134]
add esi, edx
sub eax, edx
mov dword [ecx + 0x114], esi
mov dword [ecx + 0x118], eax
movzx eax, word [ecx + 0x11c]
cmp ax, 0x10
jae 0x1021719
test ax, ax
je 0x1021719
movzx eax, ax
mov edx, eax
shl edx, 4
mov edx, dword [edx + ecx]
test dword [edx + 0x24], 0x20000000
je 0x1021702
or dword [ecx + 0x13c], 1
dec eax
shl eax, 4
lea eax, [eax + ecx + 0xc]
cmp dword [ecx + 0x130], eax
jne 0x1021719
or dword [ecx + 0x13c], 2
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4