Function at 0x466007
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x30], eax
push 0xc
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00465593
add esp, 0xc
mov eax, 1
test eax, eax
je 0x466054
mov ecx, dword [ebp - 5]
and ecx, 0xff
and ecx, 0x20
test ecx, ecx
je 0x466054
mov eax, 6
jmp 0x466375
mov edx, dword [ebp - 5]
and edx, 0xff
and edx, 1
test edx, edx
je 0x466103
mov eax, dword [ebp - 0x20]
mov byte [eax + 0xb], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], 0
mov word [ebp - 0x2c], 1
jmp 0x46608d
mov dx, word [ebp - 0x2c]
add dx, 1
mov word [ebp - 0x2c], dx
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
cmp eax, 0x64
jge 0x4660cc
mov cx, word [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00465457
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
call fcn.00466aee
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4660ca
jmp 0x4660cc
jmp 0x466081
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
cmp eax, 0x64
jne 0x4660e3
mov eax, 7
jmp 0x466375
cmp dword [ebp - 0x1c], 4
je 0x4660f1
mov eax, dword [ebp - 0x1c]
jmp 0x466375
mov ecx, dword [ebp - 0x20]
mov dl, byte [ebp - 5]
mov byte [ecx + 0xb], dl
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 5]
and edx, 0xff
and edx, 2
test edx, edx
je 0x466158
mov word [ebp - 0x14], 0
jmp 0x466127
mov ax, word [ebp - 0x14]
add ax, 1
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
mov edx, dword [ebp - 0x30]
xor eax, eax
mov ax, word [edx + ecx*2]
test eax, eax
je 0x46613f
jmp 0x46611b
mov eax, dword [ebp - 0x14]
and eax, 0xffff
add eax, 0x19
cdq
mov ecx, 0xd
idiv ecx
mov word [ebp - 0x14], ax
jmp 0x46615e
mov word [ebp - 0x14], 1
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004663aa
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46617d
mov eax, dword [ebp - 0x1c]
jmp 0x466375
mov word [ebp - 0x24], 0
mov ax, word [ebp - 0x24]
mov word [ebp - 0x2c], ax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00465a0a
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4661ae
jmp 0x466234
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
mov cl, byte [eax]
mov byte [ebp - 0x18], cl
mov edx, dword [ebp - 0x18]
and edx, 0xff
cmp edx, 0xe5
je 0x4661d6
mov eax, dword [ebp - 0x18]
and eax, 0xff
test eax, eax
jne 0x466213
mov ecx, dword [ebp - 0x2c]
and ecx, 0xffff
test ecx, ecx
jne 0x4661ee
mov edx, dword [ebp + 8]
mov ax, word [edx + 6]
mov word [ebp - 0x24], ax
mov cx, word [ebp - 0x2c]
add cx, 1
mov word [ebp - 0x2c], cx
mov edx, dword [ebp - 0x2c]
and edx, 0xffff
mov eax, dword [ebp - 0x14]
and eax, 0xffff
cmp edx, eax
jne 0x466211
jmp 0x466234
jmp 0x466219
mov word [ebp - 0x2c], 0
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004665b6
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46618b
cmp dword [ebp - 0x1c], 0
jne 0x466303
mov edx, dword [ebp - 0x14]
and edx, 0xffff
cmp edx, 1
jle 0x466303
mov ax, word [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004663aa
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x466303
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call fcn.00466a9a
add esp, 4
mov byte [ebp - 4], al
mov cx, word [ebp - 0x14]
sub cx, 1
mov word [ebp - 0x14], cx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00465a0a
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4662ac
jmp 0x466303
mov al, byte [ebp - 4]
push eax
mov cl, byte [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.004669bd
add esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov byte [ecx + 4], 1
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004665b6
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x466303
mov ax, word [ebp - 0x14]
sub ax, 1
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
test ecx, ecx
jne 0x46628c
cmp dword [ebp - 0x1c], 0
jne 0x466372
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.00465a0a
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x466372
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x28], ecx
push 0x20
push 0
mov edx, dword [ebp - 0x28]
push edx
call fcn.00466379
add esp, 0xc
push 0xb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00465593
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
xor edx, edx
mov dl, byte [ecx + 0xb]
and edx, 0x18
mov eax, dword [ebp - 0x28]
mov byte [eax + 0xc], dl
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov byte [edx + 4], 1
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret