Function at 0x10163390
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
je 0x101633ad
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
cmp dword [ebp - 4], 0
je 0x101633b9
cmp dword [ebp + 0x14], 0
jne 0x101633cc
push 0x18
mov edx, dword [ebp + 8]
push edx
call fcn.10165770
add esp, 8
jmp 0x10163869
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x48]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + edx*4]
xor ecx, ecx
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 4]
mov word [eax + 0x10], dx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 6]
mov word [eax + 0x12], dx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 8]
mov word [eax + 0x14], dx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dx, word [ecx + 0xa]
mov word [eax + 0x16], dx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xe]
push ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0xc]
push eax
call fcn.10165830
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
xor ecx, ecx
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
xor edx, edx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov ax, word [edx + 0x24]
mov word [ecx + 0x38], ax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x26]
mov dword [ecx + 0x3c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2a]
xor eax, eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x40], edx
mov dword [ecx + 0x44], eax
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1ff
jae 0x101634bb
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], ecx
jmp 0x101634c2
mov dword [ebp - 0x20], 0x1ff
mov edx, dword [ebp - 0x20]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x2e
push ecx
mov edx, dword [ebp + 0x14]
add edx, 0x58
push edx
call fcn.100672e0
add esp, 0xc
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 8]
mov byte [eax + 0x58], 0
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x20]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x1ff
jae 0x10163507
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
jmp 0x1016350e
mov dword [ebp - 0x24], 0x1ff
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 0x48], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x1c]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x2e]
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x1e]
add edx, ecx
push edx
mov edx, dword [ebp + 0x14]
add edx, 0x258
push edx
call fcn.100672e0
add esp, 0xc
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 8]
mov byte [eax + 0x258], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10163870
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.101639a0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10163900
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x2c]
cmp eax, dword [edx + 0x34]
jb 0x101635d5
ja 0x101635c4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x28]
cmp eax, dword [edx + 0x30]
jbe 0x101635d5
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x50], edx
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0x4c], eax
jmp 0x101635e4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x50], edx
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [edx + 0x44]
jb 0x1016365a
ja 0x10163602
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x50]
cmp edx, dword [ecx + 0x40]
jbe 0x1016365a
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx + 0x2c]
cmp ecx, dword [eax + 0x34]
jb 0x1016363d
ja 0x1016362c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx + 0x28]
cmp ecx, dword [eax + 0x30]
jbe 0x1016363d
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x58], eax
mov ecx, dword [edx + 0x2c]
mov dword [ebp - 0x54], ecx
jmp 0x1016364c
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x58], eax
mov ecx, dword [edx + 0x34]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
jmp 0x10163669
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0x60], edx
mov eax, dword [ecx + 0x44]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x60], 0xffffffff
jne 0x10163864
cmp dword [ebp - 0x5c], 0
jne 0x10163864
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x1e]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x10163864
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x1c]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 0x2e]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 4
jae 0x101636bb
push 9
mov ecx, dword [ebp + 8]
push ecx
call fcn.10165770
add esp, 8
jmp 0x10163869
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 2]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
add eax, 4
cmp eax, dword [ebp - 0x14]
jbe 0x101636ec
push 9
mov ecx, dword [ebp + 8]
push ecx
call fcn.10165770
add esp, 8
jmp 0x10163869
cmp dword [ebp - 0x48], 1
jne 0x10163845
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x18], 0
je 0x10163714
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x30], 0xffffffff
jne 0x1016377a
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + 0x34], 0
jne 0x1016377a
cmp dword [ebp - 0x10], 8
jae 0x10163745
push 9
mov edx, dword [ebp + 8]
push edx
call fcn.10165770
add esp, 8
jmp 0x10163869
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
xor edi, edi
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ecx + 4]
mov cl, 0x20
call fcn.1016e730
or esi, eax
or edi, edx
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x30], esi
mov dword [edx + 0x34], edi
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 8
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x28], 0xffffffff
jne 0x101637e0
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0x2c], 0
jne 0x101637e0
cmp dword [ebp - 0x10], 8
jae 0x101637ab
push 9
mov edx, dword [ebp + 8]
push edx
call fcn.10165770
add esp, 8
jmp 0x10163869
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
xor edi, edi
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ecx + 4]
mov cl, 0x20
call fcn.1016e730
or esi, eax
or edi, edx
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x28], esi
mov dword [edx + 0x2c], edi
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 8
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
cmp dword [eax + 0x40], 0xffffffff
jne 0x10163843
mov ecx, dword [ebp - 0x44]
cmp dword [ecx + 0x44], 0
jne 0x10163843
cmp dword [ebp - 0x10], 8
jae 0x1016380e
push 9
mov edx, dword [ebp + 8]
push edx
call fcn.10165770
add esp, 8
jmp 0x10163869
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
xor edi, edi
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ecx + 4]
mov cl, 0x20
call fcn.1016e730
or esi, eax
or edi, edx
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x40], esi
mov dword [edx + 0x44], edi
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 8
mov dword [ebp - 0x10], ecx
jmp 0x10163864
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, 4
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edx
jne 0x101636a2
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret