Function at 0x10018990
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [esi + 0xc], 0
jne 0x100189b7
mov ecx, dword [edi + 0x48]
cmp ecx, edx
je 0x100189b7
mov edx, esi
call fcn.10018770
jmp 0x100189d9
cmp dword [esi + 0x10], 0
mov byte [esp + 0xf], 0
jne 0x100189d9
push dword [esi + 8]
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
add esp, 0x10
mov dword [esi + 0x10], eax
mov edx, dword [esi + 0x10]
mov eax, dword [edi + 0x24]
mov dword [esp + 0x14], eax
test edx, edx
jne 0x10018a00
push dword [esi + 8]
lea eax, [esp + 0x18]
push 4
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
mov edx, eax
add esp, 0x10
mov dword [esi + 0x10], edx
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x14], ecx
test edx, edx
jne 0x10018a24
push dword [esi + 8]
lea eax, [esp + 0x18]
push 4
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
mov edx, eax
add esp, 0x10
mov dword [esi + 0x10], edx
mov al, byte [edi + 6]
mov byte [esp + 0xf], al
test edx, edx
jne 0x10018a48
push dword [esi + 8]
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
mov edx, eax
add esp, 0x10
mov dword [esi + 0x10], edx
mov al, byte [edi + 7]
mov byte [esp + 0xf], al
test edx, edx
jne 0x10018a6c
push dword [esi + 8]
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
mov edx, eax
add esp, 0x10
mov dword [esi + 0x10], edx
mov al, byte [edi + 8]
mov byte [esp + 0xf], al
test edx, edx
jne 0x10018a90
push dword [esi + 8]
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
mov edx, eax
add esp, 0x10
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x14]
mov dword [esp + 0x14], eax
test edx, edx
jne 0x10018ab7
push dword [esi + 8]
lea eax, [esp + 0x18]
push 4
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
mov edx, eax
add esp, 0x10
mov eax, dword [edi + 0x14]
mov dword [esi + 0x10], edx
shl eax, 2
test edx, edx
jne 0x10018ad8
test eax, eax
je 0x10018ad8
push dword [esi + 8]
push eax
push dword [edi + 0x30]
mov eax, dword [esi + 4]
push dword [esi]
call eax
mov edx, eax
add esp, 0x10
mov dword [esi + 0x10], edx
mov ecx, dword [edi + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
test edx, edx
jne 0x10018b02
push dword [esi + 8]
lea eax, [esp + 0x18]
push 4
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [esi + 0x10], eax
test ecx, ecx
jle 0x10018bef
xor eax, eax
mov dword [esp + 0x14], eax
mov ebx, dword [edi + 0x2c]
mov edx, dword [esi + 0x10]
add ebx, eax
mov al, byte [ebx + 8]
and al, 0x3f
mov byte [esp + 0xf], al
test edx, edx
jne 0x10018b3e
push dword [esi + 8]
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
mov edx, eax
add esp, 0x10
mov dword [esi + 0x10], edx
mov ecx, dword [ebx + 8]
and ecx, 0x3f
dec ecx
cmp ecx, 0x13
ja case.0x10018b55.2
movzx eax, byte [ecx + 0x10018cf0]
jmp dword [eax*4 + 0x10018cdc]
mov al, byte [ebx]
mov byte [esp + 0xf], al
test edx, edx
jne case.0x10018b55.2
push dword [esi + 8]
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
add esp, 0x10
mov dword [esi + 0x10], eax
jmp case.0x10018b55.2
movsd xmm0, qword [ebx]
movsd qword [esp + 0x20], xmm0
test edx, edx
jne case.0x10018b55.2
push dword [esi + 8]
lea eax, [esp + 0x24]
push 8
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
add esp, 0x10
mov dword [esi + 0x10], eax
jmp case.0x10018b55.2
mov eax, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], eax
test edx, edx
jne case.0x10018b55.2
push dword [esi + 8]
lea eax, [esp + 0x1c]
push 8
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
add esp, 0x10
mov dword [esi + 0x10], eax
jmp case.0x10018b55.2
mov ecx, dword [ebx]
mov edx, esi
call fcn.10018770
mov eax, dword [esp + 0x14]
add eax, 0x10
sub dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
jne 0x10018b10
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x10018c1e
push dword [esi + 8]
lea eax, [esp + 0x14]
push 4
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
mov dword [esi + 0x10], eax
mov ecx, eax
mov eax, dword [esp + 0x24]
add esp, 0x10
xor ebx, ebx
test eax, eax
jle 0x10018c7d
mov ecx, dword [edi + 0x40]
mov al, byte [ecx + ebx*8 + 4]
mov byte [esp + 0xf], al
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10018c50
push dword [esi + 8]
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
mov ecx, dword [edi + 0x40]
add esp, 0x10
mov dword [esi + 0x10], eax
mov cl, byte [ecx + ebx*8 + 5]
mov byte [esp + 0xf], cl
test eax, eax
jne 0x10018c73
push dword [esi + 8]
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
add esp, 0x10
mov dword [esi + 0x10], eax
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x10018c24
mov ecx, dword [esi + 0x10]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x10018ca7
push dword [esi + 8]
lea eax, [esp + 0x14]
push 4
push eax
push dword [esi]
mov eax, dword [esi + 4]
call eax
mov dword [esi + 0x10], eax
add esp, 0x10
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
jle 0x10018cc9
nop dword [eax]
mov ecx, dword [edi + 0x34]
mov edx, dword [edi + 0x48]
push esi
mov ecx, dword [ecx + ebx*4]
call fcn.10018990
inc ebx
add esp, 4
cmp ebx, dword [esp + 0x14]
jl 0x10018cb0
mov edx, esi
mov ecx, edi
call fcn.10018840
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret