Function at 0x100087ac
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x30
push ebx
push esi
mov ebx, dword [esp + 0x40]
push edi
and word [ebx + 0x3a], 0xf7ff
push ebp
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x28]
lea ebp, [ebx + 0x14]
mov edx, dword [ebx]
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], ecx
push edx
mov edi, 0xf1fa
mov dword [ebp], 0
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
call dword [eax + 0x14]
cmp word [ebx + 6], 0
je 0x100086f4
lea eax, [esp + 0x30]
push 6
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
call dword [esi + 8]
mov esi, eax
test esi, esi
jne 0x1000892e
mov eax, dword [esp + 0x14]
push 1
mov ecx, dword [esp + 0x14]
push 0
mov esi, dword [eax + 0x10]
call esi
cmp word [esp + 0x34], di
mov ecx, dword [esp + 0x30]
lea eax, [ecx + eax - 6]
mov dword [esp + 0x24], eax
je 0x100086fe
mov ecx, dword [esp + 0x10]
push 0
push eax
call esi
jmp 0x100086a2
mov esi, 1
jmp 0x1000892e
cmp word [ebx + 4], 1
jne 0x1000871a
mov ecx, dword [esp + 0x10]
push 1
mov eax, dword [esp + 0x18]
push 0
call dword [eax + 0x10]
sub eax, 6
mov dword [ebx + 0xc], eax
inc word [ebx + 4]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x36]
push 0xa
mov edi, dword [eax + 8]
push ecx
mov ecx, dword [esp + 0x18]
call edi
mov esi, eax
test esi, esi
jne 0x1000892e
mov dword [esp + 0x20], 0
cmp word [esp + 0x36], 0
jbe 0x100088ea
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x44]
lea eax, [esp + 0x18]
push 6
mov ecx, dword [esp + 0x14]
push eax
call dword [esp + 0x30]
mov esi, eax
test esi, esi
jne 0x1000892e
mov ecx, dword [esp + 0x1c]
and ecx, 0xffff
sub ecx, 4
cmp ecx, 0xc
ja case.0x1000878b.11
xor eax, eax
mov al, byte [ecx + 0x10008964]
jmp dword [eax*4 + 0x10008944]
mov eax, dword [esp + 0x18]
push 1
sub eax, 6
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
call dword [eax + 0x10]
jmp 0x100088d1
mov eax, dword [edi + 0x24]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
call fcn.10008420
add esp, 0xc
mov esi, eax
jmp 0x100088d1
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.10008320
add esp, 8
test eax, eax
jne 0x100087e1
mov esi, 1
jmp 0x100088d1
test word [ebx + 0x3a], 0x1010
mov ecx, 0
je 0x100087f1
mov ecx, dword [ebx + 0x30]
push ecx
push ebp
mov ecx, dword [ebx + 0x10]
push ecx
push eax
push edi
call fcn.1002c69c
jmp 0x100088d1
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.10008320
add esp, 8
test eax, eax
jne 0x1000881f
mov esi, 1
jmp 0x100088d1
test word [ebx + 0x3a], 0x1010
mov ecx, 0
je 0x1000882f
mov ecx, dword [ebx + 0x30]
push ecx
push ebp
mov ecx, dword [ebx + 0x10]
push ecx
push eax
push edi
call fcn.1002c502
jmp 0x100088d1
mov ecx, dword [esp + 0x2c]
push 0
call sym.CNCS232.dll_Ordinal_363
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
mov edx, dword [ebx + 0x10]
push ecx
push 0
push 0
push ebp
push edx
call fcn.1002c349
jmp 0x100088d1
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.10008320
add esp, 8
test eax, eax
jne 0x1000887c
mov esi, 1
jmp 0x100088d1
test word [ebx + 0x3a], 0x1010
mov ecx, 0
je 0x1000888c
mov ecx, dword [ebx + 0x30]
push ecx
push ebp
mov ecx, dword [ebx + 0x10]
push ecx
push eax
push edi
call fcn.1002c442
jmp 0x100088d1
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.10008320
add esp, 8
test eax, eax
jne 0x100088b4
mov esi, 1
jmp 0x100088d1
test word [ebx + 0x3a], 0x1010
mov ecx, 0
je 0x100088c4
mov ecx, dword [ebx + 0x30]
push ecx
push ebp
mov ecx, dword [ebx + 0x10]
push ecx
push eax
push edi
call fcn.1002c3c9
test esi, esi
jne 0x1000892e
xor eax, eax
inc dword [esp + 0x20]
mov ax, word [esp + 0x36]
cmp eax, dword [esp + 0x20]
jg 0x10008758
test esi, esi
jne 0x1000892e
mov eax, dword [esp + 0x14]
push 0
mov ecx, dword [esp + 0x28]
mov edi, dword [eax + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
call edi
mov ax, word [ebx + 6]
dec ax
mov word [ebx + 6], ax
jne 0x1000892e
test byte [ebx + 0x3a], 0x20
je 0x1000892e
mov ax, word [ebx + 0x42]
push 0
mov word [ebx + 6], ax
mov ecx, dword [ebx + 0xc]
mov word [ebx + 4], 1
push ecx
mov ecx, dword [esp + 0x18]
call edi
mov eax, 0
pop ebp
pop edi
cmp esi, 1
adc eax, 0xffffffff
pop esi
pop ebx
add esp, 0x30
ret