Function at 0x10009855
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x34
mov eax, ecx
mov ecx, dword [esp + 0x40]
push ebx
mov ebx, dword [eax + 0x3c]
push edi
xor edi, edi
add ebx, eax
mov dword [esp + 0x20], eax
mov dword [ecx], edi
mov ecx, dword [esp + 0x4c]
mov eax, 0x14c
mov dword [ecx], edi
mov dword [esp + 0x18], ebx
cmp word [ebx + 4], ax
jne 0x10009b4e
movzx eax, word [ebx + 0x14]
push ebp
push esi
movzx esi, word [ebx + 6]
lea ebp, [ebx + 0x18]
add ebp, eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], edi
mov ecx, edi
test esi, esi
je 0x100098be
mov edx, dword [ebx + 0x88]
mov eax, ebp
cmp dword [eax + 0xc], edx
je 0x100098ba
inc ecx
add eax, 0x28
cmp ecx, esi
jb 0x100098ab
jmp 0x100098be
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
test esi, esi
je 0x100098fe
mov ebx, dword [esp + 0x4c]
mov edi, ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
mov edx, 0x1000
mov ecx, ebx
cmp edi, ebp
je 0x100098e2
mov ecx, dword [edi + 8]
call fcn.100032b0
add dword [esp + 0x10], eax
add edi, 0x28
dec dword [esp + 0x1c]
jne 0x100098d4
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x14], edi
test esi, esi
je 0x1000993e
mov ebx, dword [esp + 0x4c]
mov edi, ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
mov edx, 0x200
cmp edi, ebp
je 0x10009922
mov ecx, dword [edi + 0x10]
jmp 0x10009924
mov ecx, ebx
call fcn.100032b0
add dword [esp + 0x14], eax
add edi, 0x28
dec dword [esp + 0x1c]
jne 0x10009914
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
imul esi, esi, 0x28
sub esi, dword [esp + 0x28]
mov edx, 0x200
add esi, ebp
mov ecx, esi
call fcn.100032b0
mov edx, 0x1000
mov ecx, esi
mov edi, eax
call fcn.100032b0
add eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
add eax, edi
mov ecx, eax
mov dword [esp + 0x40], eax
call fcn.1000dc64
mov edx, dword [esp + 0x28]
mov esi, eax
push edi
mov ecx, esi
mov dword [esp + 0x20], esi
call fcn.1000dc84
mov esi, dword [esi + 0x3c]
add esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
and dword [esp + 0x2c], 0
mov dword [esi + 0x8c], eax
movzx eax, word [esi + 0x14]
movzx edx, word [ebx + 6]
lea edi, [esi + 0x18]
add edi, eax
xor ecx, ecx
mov dword [esp + 0x38], esi
test edx, edx
je 0x100099e0
mov eax, dword [ebx + 0xa0]
mov dword [esp + 0x34], eax
mov eax, ebp
mov ebx, dword [esp + 0x34]
cmp dword [eax + 0xc], ebx
mov ebx, dword [esp + 0x20]
je 0x100099dc
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x100099c5
jmp 0x100099e0
mov dword [esp + 0x2c], eax
xor ecx, ecx
and dword [esp + 0x30], ecx
and dword [esp + 0x14], ecx
and dword [esp + 0x34], ecx
mov dword [esp + 0x20], ecx
test edx, edx
je 0x10009b2a
lea eax, [edi + 0x24]
add ebp, 0x14
sub edi, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edi
lea eax, [ebp - 0x14]
cmp eax, dword [esp + 0x18]
je 0x10009a5c
mov eax, dword [ebp]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
push dword [ebp - 4]
add ecx, eax
add ecx, dword [esp + 0x20]
lea edx, [eax + edx]
call fcn.1000dc84
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
add dword [edi + ebp], eax
add ecx, dword [edi + ebp - 8]
lea eax, [ebp - 0x14]
mov dword [edi + ebp - 8], ecx
cmp eax, dword [esp + 0x2c]
jne 0x10009ae1
mov dword [esi + 0xa0], ecx
jmp 0x10009ae1
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, edi
mov edx, 0x1000
call fcn.100032b0
mov ecx, dword [esp + 0x4c]
mov edx, 0x1000
lea ecx, [edi + ecx]
mov esi, eax
call fcn.100032b0
mov edi, dword [esp + 0x4c]
sub eax, esi
mov esi, dword [ebp]
mov edx, 0x200
lea ecx, [esi + edi]
mov dword [esp + 0x30], eax
call fcn.100032b0
mov ecx, dword [ebp - 4]
add ecx, esi
mov edx, 0x200
mov dword [esp + 0x14], eax
call fcn.100032b0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
sub dword [esp + 0x14], eax
push edi
lea ecx, [ecx + esi]
call fcn.1000dc84
mov esi, dword [esp + 0x10]
mov edx, 0x200
mov ecx, edi
mov dword [esi - 0x1c], edi
call fcn.100032b0
mov edi, dword [esp + 0x24]
mov dword [esi - 0x14], eax
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
test byte [eax], 0x60
je 0x10009b07
mov ecx, dword [ebp - 4]
mov edx, 0x200
call fcn.100032b0
mov ecx, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
jmp 0x10009b0b
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
add eax, 0x28
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
inc edx
add ebp, 0x28
mov dword [esp + 0x34], edx
cmp edx, eax
jb 0x10009a0c
mov eax, dword [esp + 0x3c]
and dword [esi + 0x58], 0
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
pop esi
mov dword [eax], ecx
pop ebp
pop edi
pop ebx
add esp, 0x34
ret 0x10