Function at 0x10c9ac70
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x44]
xor ebx, ebx
mov di, word [esi + 0x22]
mov dword [eax], ebx
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
call fcn.10c9b9b0
cmp eax, ebx
jne 0x10c9ace7
mov ebp, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebx
mov ebx, dword [esp + 0x40]
push ebx
call fcn.10c9c3b0
test eax, eax
jl 0x10c9acf5
mov edx, dword [esp + 0x10]
mov dword [esp + 0x20], 1
mov ax, word [edx + 4]
mov word [esp + 0x1c], ax
jmp 0x10c9acf5
jl 0x10c9b2b9
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
add ecx, 0x1a
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10c9ad3c
cmp di, word [esi + 0x22]
je 0x10c9ad3c
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
dec edi
push ebp
push edi
push ebx
call fcn.10c9c3b0
test eax, eax
jl 0x10c9ad3c
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], 1
mov cx, word [eax + 4]
mov word [esp + 0x1c], cx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10c9ad77
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x12]
test ecx, ecx
je 0x10c9ad77
mov eax, dword [esp + 0x14]
add eax, 0x1a
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
push 1
push ecx
push edx
push ebx
call fcn.10c9aa30
add esp, 0x10
jmp 0x10c9b294
test eax, eax
mov dword [esp + 0x2c], 0
jne 0x10c9ad94
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
push ebp
call fcn.10c9a780
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x10c9ada7
call sym.PBVM90.dll_PBDevDbgTraceActive
test eax, eax
je 0x10c9adcb
mov edx, dword [ebx + 0xc]
push edx
call sym.PBVM90.dll_sh_dbg_set_this
mov eax, dword [esp + 0x1c]
and eax, 0xffff
push eax
push ebx
push esi
push 0x10e0e988
push 0x1b
call sym.PBVM90.dll__sh_dbg_out
add esp, 0x14
push ebx
call sym.PBVM90.dll_ob_get_mode
cmp eax, 8
jne 0x10c9adfa
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
push ebp
push edx
push ebx
call fcn.10c5f340
mov edi, eax
add esp, 0x10
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], 1
jmp 0x10c9ae41
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x24]
push eax
push ecx
push ebp
push edx
push ebx
call fcn.10c5ed00
mov edi, eax
add esp, 0x14
test edi, edi
mov dword [esp + 0x18], edi
je 0x10c9ae41
cmp dword [esp + 0x40], 1
jne 0x10c9ae2e
mov dword [esp + 0x28], 3
jmp 0x10c9ae41
mov al, byte [edi + 0xc]
xor ecx, ecx
and al, 0x1c
cmp al, 4
setne cl
add ecx, 2
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp edi, ecx
je 0x10c9b037
mov eax, dword [esp + 0x20]
mov dx, word [esp + 0x1c]
cmp eax, ecx
mov word [edi + 0x10], dx
jne 0x10c9afc5
lea edi, [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x1c]
add esi, 0xe
and ebx, 0xffff
mov ecx, esi
push ebx
call fcn.10c9d220
mov ecx, dword [eax]
xor ebp, ebp
cmp ecx, ebp
jne 0x10c9aec8
push 0x22
call sub.libjsybheap.dll_Ordinal_13
add esp, 4
cmp eax, ebp
je 0x10c9aebc
mov dword [eax + 6], ebp
mov dword [eax + 0xa], ebp
mov dword [eax + 0xe], ebp
mov dword [eax + 0x12], ebp
mov dword [eax + 0x1a], ebp
mov dword [eax + 0x1e], ebp
mov word [eax + 4], 0xffff
mov dword [eax + 0x16], 2
mov dword [eax], 0x10dc0cc8
mov ebp, eax
push ebx
mov ecx, esi
call fcn.10c9d220
mov dword [eax], ebp
xor ebp, ebp
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, esi
call fcn.10c9d220
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov edi, eax
lea esi, [eax + 0x1a]
mov eax, dword [eax + 0x1a]
cmp eax, ebp
je 0x10c9aef3
add eax, 0x1a
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0xa
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esi]
cmp esi, ebp
je 0x10c9af0d
add esi, 0x1a
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov cx, word [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 6]
test eax, eax
mov word [ebx + 4], cx
je 0x10c9af36
push eax
call sub.libjsybheap.dll_Ordinal_16
add esp, 4
mov edi, dword [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call sub.libjsybheap.dll_Ordinal_13
add esp, 4
mov dword [ebx + 6], eax
call fcn.10bd19f0
test eax, eax
je 0x10c9af6c
mov edx, dword [esp + 0x3c]
mov eax, dword [ebx + 6]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscpy]
add esp, 8
jmp 0x10c9af8e
mov edi, dword [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx + 6]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [ebx + 0xe], ebp
mov dword [ebx + 0x12], eax
mov dword [ebx + 0x16], ecx
mov dword [ebx + 0x1a], edx
mov dword [ebx + 0x1e], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
call fcn.10c9c0d0
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
jmp 0x10c9afda
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [eax + 0xe], edx
mov edx, dword [esp + 0x28]
mov dword [eax + 0x12], edx
mov dword [eax + 0x1e], ecx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push 0
mov ecx, dword [eax + 6]
mov eax, dword [esp + 0x44]
mov dword [edx + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
push ebx
call fcn.10c9aa30
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
add esp, 0x10
push edx
push eax
push ebp
push ecx
push ebx
call fcn.10c777a0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
add esp, 0x14
xor edx, edx
cmp dword [eax + 0x12], 1
setne dl
push edx
push ecx
push ebx
call fcn.10c9a110
add esp, 0xc
jmp 0x10c9b27c
mov eax, dword [esp + 0x24]
cmp eax, 6
jne 0x10c9b096
cmp dword [esp + 0x44], ecx
je 0x10c9b096
cmp dword [esp + 0x20], ecx
jne 0x10c9b050
dec word [esi + 0x22]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x18]
push edx
push 3
push eax
push ebp
push ecx
push ebx
mov ecx, esi
call fcn.10c9b600
test eax, eax
jl 0x10c9b089
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10c9b089
mov edx, dword [esp + 0x48]
mov dword [esp + 0x24], 0
mov dword [edx], eax
jmp 0x10c9b27c
mov dword [esp + 0x24], 0xa
jmp 0x10c9b27c
cmp eax, 0xe
jne 0x10c9b272
cmp dword [esp + 0x20], ecx
jne 0x10c9b251
lea edi, [esi + 0x28]
push edi
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi + 0x12]
add esi, 0xe
and ebx, 0xffff
cmp ebx, eax
jl 0x10c9b13f
mov ecx, dword [esi + 8]
cmp ebx, ecx
jl 0x10c9b139
mov eax, dword [esi + 0xc]
lea ebp, [eax + ecx]
cmp ebp, ebx
jg 0x10c9b0e2
add ebp, eax
cmp ebp, ebx
jle 0x10c9b0dc
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10c9b0fe
mov edx, dword [esi]
lea ecx, [ebp*4]
push 0
push ecx
push edx
push eax
call sym.PBVM90.dll_pbstg_realc
jmp 0x10c9b111
mov ecx, dword [esi]
lea eax, [ebp*4]
push eax
push ecx
call sub.libjsybheap.dll_Ordinal_15
add esp, 8
mov edx, dword [esi + 8]
mov ecx, ebp
mov dword [esi], eax
mov edi, dword [esi]
sub ecx, edx
xor eax, eax
shl ecx, 2
lea edi, [edi + edx*4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x40]
mov dword [esi + 8], ebp
lea eax, [ebx + 1]
mov dword [esi + 4], eax
mov ecx, dword [esi]
cmp dword [ecx + ebx*4], 0
jne 0x10c9b16c
push 0x22
call sub.libjsybheap.dll_Ordinal_13
add esp, 4
test eax, eax
je 0x10c9b160
mov ecx, eax
call fcn.10c9d1f0
mov ebp, eax
jmp 0x10c9b162
xor ebp, ebp
push ebx
mov ecx, esi
call fcn.10c9d220
mov dword [eax], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebp
push ebx
mov ecx, esi
call fcn.10c9d220
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov edi, eax
lea esi, [eax + 0x1a]
mov eax, dword [eax + 0x1a]
test eax, eax
je 0x10c9b199
add eax, 0x1a
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0xa
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esi]
test esi, esi
je 0x10c9b1af
add esi, 0x1a
push esi
call ebp
mov ebx, dword [esp + 0x10]
mov dx, word [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx + 6]
mov word [ebx + 4], dx
test eax, eax
je 0x10c9b1d0
push eax
call sub.libjsybheap.dll_Ordinal_16
add esp, 4
mov edi, dword [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call sub.libjsybheap.dll_Ordinal_13
add esp, 4
mov dword [ebx + 6], eax
call fcn.10bd19f0
test eax, eax
je 0x10c9b206
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebx + 6]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscpy]
add esp, 8
jmp 0x10c9b228
mov edi, dword [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx + 6]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov dword [ebx + 0x16], 2
mov dword [ebx + 0xe], eax
mov dword [ebx + 0x12], eax
mov dword [ebx + 0x1a], ebp
mov dword [ebx + 0x1e], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
call fcn.10c9c0d0
mov ebx, dword [esp + 0x34]
jmp 0x10c9b25e
mov eax, dword [esp + 0x10]
mov dword [eax + 0xe], ecx
mov dword [eax + 0x12], ecx
mov dword [eax + 0x1e], ecx
mov ecx, dword [esp + 0x10]
push 0
push 2
push ecx
push ebx
call fcn.10c9aa30
add esp, 0x10
jmp 0x10c9b27c
cmp dword [esp + 0x2c], ecx
je 0x10c9b27c
dec word [esi + 0x22]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
add eax, 0x1a
mov dword [ebx + 0x132], edx
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10c9b2ac
mov edx, dword [esp + 0x48]
mov ecx, dword [eax + 0xe]
push ebx
push eax
mov dword [edx], ecx
call fcn.10c9a2c0
mov eax, dword [esp + 0x24]
neg eax
sbb eax, eax
and eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x18